<template>
    <el-container>
        <el-aside width="1000px">
            <el-form ref="dialogForm" label-width="100px">
                <el-row>
                    <el-form-item label-width="120px" label="方法列表">
                        <el-select placeholder="请选择" v-model="requestIndex" style="width: 550px" @change="optionChange">
                            <el-option-group v-for="(group,x) in optionsInfo" :key="group.label" :label="`${x+ 1}-${group.label}`">
                                <el-option v-for="(item, i) in group.options" :key="item.index" :label="`${x+ 1}-${i + 1}.${item.indexText}`" :value="item.index">
                                    <span style="float: left">{{x+1}}-{{i+1}}.{{item.indexText}}</span>
                                    <span style="float: right; color: #8492a6; font-size: 13px">{{ group.label }}</span>
                                </el-option>
                            </el-option-group>
                        </el-select>
                        <el-icon v-if="hasToken" :size="20">
                            <key />
                        </el-icon>
                        <span v-if="!hasToken" style="color: red">尚未登录,请登录</span>
                        <button @click="dialogVisble = true" v-if="hasToken">查看token</button>

                        <el-tabs v-model="activeName" type="border-card" style="margin-top:10px;width: 850px">
                            <el-tab-pane v-for="(group,x) in optionsInfo" :key="group.label" :label="`${x+ 1}-${group.label}`">
                                <el-radio-group v-model="requestIndex" @change="radioChange">
                                    <el-radio size="mini" border style="width:250px;margin:3px" v-for="(item, i) in group.options" :key="item.index" :label="item.index">{{x+1}}-{{i+1}}.{{item.indexText}}</el-radio>
                                </el-radio-group>
                            </el-tab-pane>
                        </el-tabs>

                        <!-- <el-select placeholder="---请选择请求的方法---" v-model="requestIndex" style="width: 300px" @change="optionChange">
						<el-option v-for="(item, i) in optionsInfo" :key="item.index" :label="`${i + 1}.${item.indexText}`" :value="item.index" />
					</el-select> -->

                    </el-form-item>
                </el-row>

                <el-row>
                    <el-form-item label-width="120px" label="参数说明">
                        <el-input v-model="requestRemark" placeholder="参数说明" style="width: 850px" rows="5" type="textarea" />
                    </el-form-item>
                </el-row>
                <el-row>
                    <el-form-item label-width="120px" label="请求参数">
                        <el-input v-model="requestContent" placeholder="请求参数" style="width: 850px" rows="10" type="textarea" />
                    </el-form-item>
                </el-row>
                <el-row>
                    <el-form-item label-width="120px" label="">
                        <el-button @click="submit" type="success">提交</el-button>
                        <el-button @click="format">格式化请求参数</el-button>
                    </el-form-item>
                </el-row>
                <el-row>
                    <el-form-item label-width="120px" label="执行结果">
                        <el-input v-model="requestResult" placeholder="执行结果" style="width: 850px" rows="5" type="textarea" />
                    </el-form-item>
                </el-row>
                <el-row>
                    <el-form-item label-width="120px" label="返回描述">
                        <json-viewer :value="responseContent" :indent="2" :expand-depth="6" boxed copyable style="width: 850px"></json-viewer>
                    </el-form-item>

                </el-row>

            </el-form>
        </el-aside>
        <el-main>
            <json-viewer :value="responseResult" :indent="2" :expand-depth="6" boxed copyable></json-viewer>
        </el-main>
    </el-container>

    <el-dialog title="token" v-model="dialogVisble" width="30%" :before-close="close">
        <span>{{ token }}</span>
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="dialogVisble = false">关闭</el-button>
            </span>
        </template>
    </el-dialog>

    <div id="audioBox"></div>
</template>
<script>
import publicjs from "@/api/model/publicjs";
import config from "@/config";
import http from "@/utils/request";
import JsonViewer from 'vue-json-viewer'

export default {
    name: "waiterService",
    emits: ["success", "closed"],
    components: {
        publicjs,
        JsonViewer
    },
    data() {
        return {
            //表单数据
            dialogVisble: false,
            token: "",
            hasToken: false,
            requestIndex: "pcLogin",
            requestRemark: "",
            requestContent: "",
            requestResult: "",
            responseResult: "",
            responseContent: "",
            optionsInfo: [
                {
                    label: '服务员接口',
                    options: [
                        {
                            index: "GetBaseConfigInfo",
                            indexText: "获取门店基础配置信息",
                            requestRemark: "",
                            requestContent:
                                '{"functionName": "GetBaseConfigInfo","contentData": {"orgCode": "0004"},"orgCode": "0004"}',
                            responeContent:
                                '',
                        },
                        {
                            index: "pcLogin",
                            indexText: "服务员登录",
                            requestRemark:
                                "orgname:门店编码(先默认0004);username:登录人编码(先默认admin);password:登录密码(先默认123456)",
                            requestContent:
                                '{"orgname":"0004","username":"admin","password":"123456"}',
                        },
                        {
                            index: "pcLogoff",
                            indexText: "服务员注销",
                            requestRemark: "取登录后的token",
                            requestContent:
                                '{"functionName":"pcLogoff","contentData":""}',
                        },
                        {
                            index: "GetDicData",
                            indexText: "获取字典表数据",
                            requestRemark:
                                "parentCode:字典父级编号(可以到后台->系统管理->字典管理 查找) 011性别 104来源 105特殊要求 106获取取消原因 101桌台分类 569支付方式 571会员卡类型 570会员调账来源 568调账原因 572退换菜原因 573拉黑原因 577口味组 578其他支付 子类",
                            requestContent:
                                '{"functionName": "GetDicData","contentData": {"parentCode":"561"},"orgCode": "0004"}',
                            responeContent: "Code:编号,Name:名称",
                        },
                        {
                            index: "getWaiterList",
                            indexText: "获取服务员列表(预定)",
                            requestRemark: `门店取登录的门店编码,返回值为本门店的服务员
                            "userCode":"0003","userName":"aaa"
                            员工编码，员工姓名`,
                            requestContent:
                                '{"functionName":"getWaiterList","contentData":""}',
                        },
                        {
                            index: "getRoomArea",
                            indexText: "获取门店分区(点单)",
                            requestRemark: `门店取登录的门店编码
                            {"roomAreaCode":"000401","roomAreaName":"bbb"}
                            分区编码，分区名称`,
                            requestContent:
                                '{"functionName":"getRoomArea","contentData":""}',
                        },
                        {
                            index: "getPayType",
                            indexText: "获取支付类型列表",
                            requestRemark: `
                            {"payCode":"001","payName":"现金"}
                            支付编码，支付名称`,
                            requestContent:
                                '{"functionName":"getPayType","contentData":""}',
                        },
                    ]
                },

                {
                    label: '咨客大厅',
                    options: [
                        {
                            index: "getCustomerManageList",
                            indexText: "获取订台人列表(预定)",
                            requestRemark: `门店取登录的门店编码,返回值为本门店的客服经理(订台人)
                            "userCode":"0003","userName":"aaa"
                            员工编码，员工姓名`,
                            requestContent:
                                '{"functionName":"getCustomerManageList","contentData":""}',
                        },
                        {
                            index: "roomClear",
                            indexText: "清台",
                            requestRemark: `门店取登录的门店编码,roomList:房台列表,暂时没有判断是否可清除`,
                            requestContent:
                                '{"functionName":"roomClear","contentData":{"roomList":"0004003,0004005"}}',
                        },
                        {
                            index: "roomRepair",
                            indexText: "房台维修/正常",
                            requestRemark: `roomList 房台列表 state 1 设置为正常 0 设置为维修`,
                            requestContent:
                                '{"functionName":"roomRepair","contentData":{"roomList":"0004003,0004005","state":"1"}}',
                        },
                        {
                            index: "reserveAdd",
                            indexText: "预定房间或修改预定",
                            requestRemark: `门店取登录的门店编码
                            reserveCode:预定编码(空字符串是新增,否则为修改),roomCode:房台编码,memberName:会员姓名,memberMobile:会员电话,minConsume:低消,sex:性别({"code":"011001","name":"男"},{"code":"011002","name":"女"}),arrivedPeoperCount:人数,reserveTime:计划到达时间,sourceType:客户来源(code),waiterUser:服务员,maintainUser:订台人(code),specialRequireType:特殊要求(code),remark:备注`,
                            requestContent:
                                '{"functionName":"reserveAdd","contentData":{"reserveCode":"","roomCode":"0004001","memberName":"123","memberMobile":"13812345678","minConsume":"100","sex":"011002","arrivedPeoperCount":"4","reserveTime":"2024-01-23 18:30:00","sourceType":"104001","waiterUser":"0003","maintainUser":"0004","specialRequireType":"105002","remark":""}}',
                        },
                        {
                            index: "roomOpen",
                            indexText: "开台",
                            requestRemark: `门店取登录的门店编码,roomCode:房台编码(*),reserveCode:预定编码,callCode:排队编码,memberCode:会员编码(为空需要判断是否存在),memberName:会员姓名,memberMobile:会员电话,memberOpenid:openid,sex:性别{"code":"011001","name":"男"},{"code":"011002","name":"女"},sourceType:来源{"code":"104001","name":"自来客"},{"code":"104002","name":"朋友推荐"},{"code":"104003","name":"抖音"},{"code":"104004","name":"营销活动"},openTime:开台时间,waiterUser:开台人,maintainUser:订台人,arrivedPeoperCount:达到人数,MinConsume:低消,specialRequire:特殊要求,remark:"备注"`,
                            requestContent:
                                '{"functionName":"roomOpen","contentData":{"roomCode":"0004003","reserveCode":"","callCode":"","memberCode":"","memberName":"李四","memberMobile":"13456456456","memberOpenid":"","sex":"011002","sourceType":"104004","openTime":"2024-01-31 16:00:00","waiterUser":"0003","maintainUser":"0004","arrivedPeoperCount":"3","sourceType":"104003","minConsume":"1000","specialRequire":"105002","remark":"备注"}}',
                        },
                        {
                            index: "RoomChange",
                            indexText: "转台",
                            requestRemark: `门店取登录的门店编码,oldRoomCode:旧房台编码(*),newRoomCode:新房台编码(空闲状态的),consumeCode:旧房台的当前消费订单,reserveCode:预定编号,peopleCount:人数`,
                            requestContent:
                                '{"functionName":"RoomChange","contentData":{"oldRoomCode":"0004002","newRoomCode":"0004006","consumeCode":"0004202402260003","reserveCode":"","peopleCount":"8"}}',
                        },
                        {
                            index: "reserveCancel",
                            indexText: "取消预定",
                            requestRemark: `门店取登录的门店编码
                            reserveCode:预定编码(多个逗号隔开),cancelReason:取消原因,remark:备注,isSendMsm:是否发送短信 1 是 0 否`,
                            requestContent:
                                '{"functionName":"reserveCancel","contentData":{"reserveCode":"0004202401230010,0004202401230011","cancelReason":"中文","isSendMsm":"1","remark":"备注"}}',
                        },
                        {
                            index: "GetRoomOpeHistory",
                            indexText: "获取房台操作记录",
                            requestRemark: `stratDate:开始时间\r\n endDate:结束时间 \r\nroomCode:房台号 \r\n
                            code:记录编号 \r\narrivedPeoperCount:人数 \r\nmaintainUserName:订台人 \r\nwaiterUserName:服务员 \r\nminConsume:低消 \r\n
                            realAmt:实消 \r\ncrDate:操作时间 \r\nmemberMobile:手机号 stateName:操作类型 \r\n consumeCode:订单号,pageSize:当页条数,pageIndex:页码`,
                            requestContent:
                                '{"functionName":"GetRoomOpeHistory","contentData":{"stratDate":"2024-01-10 00:00:00","endDate":"2024-02-17 00:00:00","roomCode":"0004003","pageSize":10,"pageIndex":1}}',
                        },
                        {
                            index: "GetRoomOpeHistoryDetail",
                            indexText: "获取房态操作详情",
                            requestRemark: `门店取登录的门店编码,roomCode:房台号,consumeCode:消费单号,stratDate:开始时间(有传订单号传空值),endDate:结束时间(有传订单号传空值),pageSize:当页条数,pageIndex:页码
                            code,coonsumeCode:订单编号,maintainUserName:订台人,startTime:开台时间,roomCode:房台号,totalAmt:总金额,difAmt:差额,apyAmt:支付金额,ticketAmt:优惠券金额,giveAmt:店铺赠送金额;remark:开台备注,orderGoodCount:当前订单商品数量
                            orderGoods:[{orderBatchCode:批次号,orderTime:点单时间,totalAmt:总金额,orderUser:点单人,orderUserName:点单人,orderGoodsInfos(订单商品信息):[{itemCode:商品编号,orderBatchCode:订单批次号,consumeCode:订单编号,goodsPriceCode:套餐编号,
                                goodsPriceInfos:[{itemCode:订单商品编号,goodsCode:商品编号,goodsName:商品名称,uomName:单位,realQty:实际熟练,orderQty:订单数量,totalAmt:总金额,realAmt:实际支付金额,payAmt:支付金额}],
                                standard:规格,goodsCode:商品编号,goodsName:商品名称,uomName:单位,realQty:实际数量,orderQty:订单数量,totalAmt:总金额,realAmt:实际支付金额,payAmt:支付金额,orderTime:订单时间,orderUser:订单人,orderUserName:订单人名称}]
                            orderPayInfos:[{consumeCode:订单编号,itemCode:支付编号,payBatchCode:支付批次号,payDate:支付时间,payAmt:支付金额,realAmt:实际支付金额,payTypeName:支付方式}]`,
                            requestContent:
                                '{"functionName":"GetRoomOpeHistoryDetail","contentData":{"roomCode":"0004002","consumeCode":"","stratDate":"2024-01-10 00:00:00","endDate":"2024-03-17 00:00:00","pageSize":15,"pageIndex":1}}',
                        },
                        {
                            index: "GetReserveRoomList",
                            indexText: "获取房台列表",
                            requestRemark: "orgCode:机构编号\r\nreserveTime:预订时间,roomState 0 空闲 1 预定 2 使用中 -1 维修 -2锁台 typeCode:房台类型 {totalCount:总数,noCount:空闲,useCount:使用中,reserveCount:预定,repairCount:维修,areaRooms:[{roomCode:桌台编号,roomName:桌台名称,typeCode:类型编号,typeName:类型名称,minConsume:低消,consumeCode:消费编号,reserveCode:预定编号,maxPeople:最大人数,roomState:状态编码,roomStateDesc:状态名称}]",
                            requestContent:
                                '{"functionName": "GetReserveRoomList","orgCode": "0004","contentData": {"reserveTime":"2024-03-21 10:00:00","roomState":"","typeCode":"","pageSize":15,"pageIndex":1}}',
                            responeContent: "{totalCount:总数,noCount:空闲,useCount:使用中,reserveCount:预定,repairCount:维修,areaRooms:[{roomCode:桌台编号,roomName:桌台名称,typeCode:类型编号,typeName:类型名称,minConsume:低消,consumeCode:消费编号,reserveCode:预定编号,maxPeople:最大人数,roomState:状态编码,roomStateDesc:状态名称}]",
                        },
                        {
                            index: "GetRoomList",
                            indexText: "获取房台下拉列表",
                            requestRemark: "orgCode:机构编号",
                            requestContent:
                                '{"functionName": "GetRoomList","orgCode": "0004","contentData": ""}',
                            responeContent: "code:编号,name:名称",
                        },
                        {
                            index: "GetReserveStateCount",
                            indexText: "获取预定各状态数量统计",
                            requestRemark: `currentDate_Start:开始时间,currentDate_End:结束时间
                            totalCount:总数量,reserveCount:预定数量,finishCount:完成数量,cancelCount:取消数量`,
                            requestContent:
                                '{"functionName":"GetReserveStateCount","contentData":{"currentDate_Start":"2024-03-01 00:00:00","currentDate_End":"2024-03-11 23:00:00"}}',
                        },
                        {
                            index: "GetReserveList",
                            indexText: "获取预定列表",
                            requestRemark: `currentDate_Start:开始时间,currentDate_End:结束时间
                            maintainUser:订台人编号,state:状态 0取消 1预定 2开台,roomCodeL:桌台,key:姓名/手机号,source:来源,pageSize:页面大小,pageIndex:页码`,
                            requestContent:
                                '{"functionName":"GetReserveList","contentData":{"currentDate_Start":"2024-03-01 00:00:00","currentDate_End":"2024-03-11 23:00:00"}}',
                        },
                        {
                            index: "getReserveInfo",
                            indexText: "获取预定信息详情(预定)",
                            requestRemark: `门店取登录的门店编码,code:预定编码,roomCode:房台编码,roomName:房台名称,memberCode:会员编码,memberName:会员名称,roomTypeName:桌台类型,memberMobile:会员电话,sex:性别,peopleNumber:预定人数,reserveTime:预定时间,keepFullTime:保留时间,waiterUserCode:服务员编码,waiterUserName:服务员姓名,maintainUserCode:订台人编码,maintainUserName:订台人姓名,specialRequireTypeCode:特殊要求编码,specialRequireTypeName:特殊要求,remark:备注,state;状态`,
                            requestContent:
                                '{"functionName":"getReserveInfo","contentData":"reserveCode预定编号"}',
                        },
                        {
                            index: "getConsumeInfo",
                            indexText: "获取开台信息详情",
                            requestRemark: `门店取登录的门店编码,code:预定编码,roomCode:房台编码,roomName:房台名称,memberCode:会员编码,memberName:会员名称,roomTypeName:桌台类型,memberMobile:会员电话,sex:性别,peopleNumber:到达人数,waiterUserCode:服务员编码,waiterUserName:服务员姓名,maintainUserCode:订台人编码,maintainUserName:订台人姓名,specialRequireTypeCode:特殊要求编码,specialRequireTypeName:特殊要求,remark:备注,state;状态`,
                            requestContent:
                                '{"functionName":"getConsumeInfo","contentData":"consumeCode消费编号"}',
                        },
                        {
                            index: "SetMemberBlack",
                            indexText: "拉入黑名单",
                            requestRemark: `门店取登录的门店编码,memberMobiles:选中的会员手机号`,
                            requestContent:
                                '{"functionName":"SetMemberBlack","contentData":{"memberMobiles":"13322222222,13322222223"}}',
                        },
                        {
                            index: "GetTypeRoomList",
                            indexText: "获取房台选择列表查询条件",
                            requestRemark: "orgCode:机构编号,type:桌台类型, 为空 查询全部桌台",
                            requestContent:
                                '{"functionName": "GetTypeRoomList","orgCode": "0004","contentData": {"type":""}}',
                            responeContent: "code:编号,name:名称",
                        },
                    ]
                },
                {
                    label: '会员接口',
                    options: [
                        {
                            index: "GetMemberInfo",
                            indexText: "查询会员",
                            requestRemark: `orgCode:机构编号,mobile:手机号
                            {memberAvatar:头像,name:名称,mobile:手机号,sex:性别,birthday:生日,carCount:卡数量,memberCode:会员账号,
                                carList:[{currentAmtAct:总余额,currentAmt:本金,currentPresentAmt:赠送,
                                    currentCoins:金币,currentPoint:积分,expireDate:有效日期,openDate:开卡时间,cardType:1 品牌卡 2 会员卡,typeCode:卡类型编号(用于获取充值方案)
                                    carState:状态 开卡状态 0 未开卡 1已开卡 2冻结 3挂失,consumeTotal:消费总金额,cardImg:卡图片,carName:卡名称,carNo:卡号,typeCode:卡类型}]}`,
                            requestContent:
                                '{"functionName": "GetMemberInfo","orgCode": "0004","contentData": {"mobile":""}}',
                            responeContent: "code:编号,name:名称",
                        },
                        {
                            index: "MemberOpenCrad",
                            indexText: "会员开卡注册",
                            requestRemark:
                                "orgCode: 组织代码,orgName: 组织名称,cardType:1 品牌 2门店,mobiles: 手机号,openId: 微信OpenId,wechat: 微信号,name: 姓名,sex: 性别 (011002 女 011001 男),birthday: 生日",
                            requestContent:
                                '{"functionName": "MemberOpenCrad","contentData": {"cardType":"1","orgCode": "00004","orgName": "卯兔","mobiles": "13322222222","openId": "123","wechat": "123","name": "姓名","sex": "011002","birthday": "2024-10-11 11:11:11"}}',
                            responeContent: "开卡",
                        },
                        {
                            index: "UpdateMember",
                            indexText: "会员编辑",
                            requestRemark:
                                "Code:会员编号;mobile:手机号;name:名称;sex:性别(011002 女 011001 男);birthday:生日,cardType:卡类型 1 品牌 2门店 多个用逗号隔开 1,2",
                            requestContent:
                                '{"functionName": "UpdateMember","contentData": {"cardType":"1","code":"000016","mobile": "13123456789","name": "名字","sex": "011001","birthday": "1994-07-19"}}',
                            responeContent: "更新",
                        },
                        {
                            index: "GetSchemeList",
                            indexText: "获取充值方案",
                            requestRemark: "typeCode:卡类型,Code:充值方案编号,Name:方案名称,ChargeAmt:充值金额,PresentAmt:赠送金额,PresentPoint:赠送积分;PresentCoins:赠送金币;Tickets:赠送优惠券集合{SchemeCode:充值方案编号;TicketCode:优惠券编号;TicketName:优惠券名称;TicketAmt:优惠券额度;TypeName:类型}",
                            requestContent:
                                '{"functionName": "GetSchemeList","contentData": {"typeCode":""}}',
                            responeContent: "Code:充值方案编号,Name:方案名称,ChargeAmt:充值金额,PresentAmt:赠送金额,PresentPoint:赠送积分;PresentCoins:赠送金币;Tickets:赠送优惠券集合{SchemeCode:充值方案编号;TicketCode:优惠券编号;TicketName:优惠券名称;TicketAmt:优惠券额度;TypeName:类型}",
                        },
                        {
                            index: "MemberScheme",
                            indexText: "会员充值确认",
                            requestRemark:
                                "amt:充值金额(如果选择了充值方案,优先获取充值方案金额),code:会员卡号,type:充值类型 0自行充值 1收银台充值 2 他人充值,schemeCode:充值方案编号,payType:支付方式569 字典获取数据,ticketCode:赠送券编号,amtAct 实际收款,giveChange:找零,giveChangeAct:找赎,isGiveAct:是否 找赎 1是 0否,payCode:支付码,referMan:推荐人编号(服务员列表),tradeNo:微信或者支付宝支付返回的tradeNo",
                            requestContent:
                                '{"functionName": "MemberScheme","orgCode": "0004","contentData": {"amt":"1","code":"000001","type":"1","schemeCode":"123","payType":"充值方式","ticketCode":"券编号","amtAct":"0","giveChange":"0","isGiveAct":"0","giveChangeAct":"0","payCode":"","referMan":"","tradeNo":""}}',
                            responeContent: "充值完成",
                        },
                        // {
                        //     index: "MenberRecharge",
                        //     indexText: "会员储值支付",
                        //     requestRemark:
                        //         "schemeCode:储值方案编码,otherCode:为他人储值的会员卡号,amt:自定义充值金额,openId:会员信息中的openId,memberCode:会员卡号",
                        //     requestContent:
                        //         '{"functionName": "MenberRecharge","orgCode": "0004","contentData": {"schemeCode":"","otherCode":"","memberCode":""}}',
                        //     responeContent:
                        //         "Code:充值方案编号,Name:方案名称,ChargeAmt:充值金额,PresentAmt:赠送金额,PresentPoint:赠送积分;PresentCoins:赠送金币;Tickets:赠送优惠券集合{SchemeCode:充值方案编号;TicketCode:优惠券编号;TicketName:优惠券名称;TicketAmt:优惠券额度;TypeName:类型}",
                        // },
                        {
                            index: "MemberRechargeRecord",
                            indexText: "会员充值记录",
                            requestRemark:
                                "key:手机号/卡号,orgName:充值门店名称,typeCode:卡类型 字典数据571,operDateStart:交易开始日期,operDateEnd:交易结束日期,pageIndex:页码,pageSize:每页条数 {carNo:会员卡号,CarName:会员卡名称,memberCode:会员账号,mobile:手机号,CarState:卡状态 1 正常 2冻结 3 挂失,typeName:会员卡类型名称,MemberLevelName:会员等级名称,schemeName:充值方案名称,orgName:交易门店名称,operAmt:充值金额,operDate:操作日期}",
                            requestContent:
                                '{"functionName": "MemberRechargeRecord","orgCode": "0004","contentData": {"key":"","orgName":"梦田","typeCode":"571003","operDateStart":"2023-01-11 12:12:12","operDateEnd":"2024-05-11 12:12:12","pageIndex":"1","pageSize":"15"}}',
                            responeContent: "充值完成",
                        },
                        {
                            index: "MemberTransRecord",
                            indexText: "会员交易流水记录",
                            requestRemark:
                                "key:手机号/卡号,orgName:消费门店名称,typeCode:卡类型 字典数据571,operDateStart:交易开始日期,operDateEnd:交易结束日期,pageIndex:页码,pageSize:每页条数 {referCode:关联订单号,carNo:会员卡号,carName:会员卡名称,memberCode:会员账号,mobile:手机号,carState:1卡状态 1正常 2冻结 3挂失,typeName:会员卡类型,memberLevelName:会员等级,orgName:交易门店,operAmt:交易金额,operCoins:交易金币,operDate:交易时间,currentAmt:当前余额,currentCoins:当前金币}",
                            requestContent:
                                '{"functionName": "MemberTransRecord","orgCode": "0004","contentData": {"key":"","orgName":"梦田","typeCode":"571003","operDateStart":"2023-01-11 12:12:12","operDateEnd":"2024-05-11 12:12:12","pageIndex":"1","pageSize":"15"}}',
                            responeContent: "充值完成",
                        },
                        {
                            index: "MemberTransPointRecord",
                            indexText: "会员交易积分记录",
                            requestRemark:
                                "key:手机号/卡号,orgName:消费门店名称,typeCode:卡类型 字典数据571,operDateStart:交易开始日期,operDateEnd:交易结束日期,pageIndex:页码,pageSize:每页条数 {carNo:会员卡号,carName:会员卡名称,memberCode:会员账号,mobile:手机号,tranContent:交易内容,typeName:会员卡类型,orgName:交易门店,operAmt:交易金额,operPoint:交易积分,operDate:交易时间,currentPoint:当前积分}",
                            requestContent:
                                '{"functionName": "MemberTransPointRecord","orgCode": "0004","contentData": {"key":"","orgName":"梦田","typeCode":"571003","operDateStart":"2023-01-11 12:12:12","operDateEnd":"2024-05-11 12:12:12","pageIndex":"1","pageSize":"15"}}',
                            responeContent: "充值完成",
                        },
                        {
                            index: "GetMemberTicket",
                            indexText: "获取会员优惠券(卡券记录)",
                            requestRemark:
                                `memberCode:会员编号;ticketState 状态 1未使用 2已使用 3已过期;ticketName:名称,pageSize:每一页大小,pageIndex:页码
                                notUsed:未使用数量,used:已使用,expired:已过期,result:[Code:卡券编号,TicketName:优惠券名称,TicketCode:优惠券编号,UseConditionAmt:使用金额(满xx金额使用),TypeName:类型,CreateDate:创建时间,ExpireDate:失效时间,TicketAmt:卷面额度,attachment:图片路径
                            isUseByCondition:是否使用限制条件 0 否 1是,useLimit:使用数量,useAmt:满金额,grantCountLimit:"发放数量限制 0不限制 1限制",
                            countLimit:限制数量,maxCount:最大存量,usefulDateType:"有效期类型 1 时间段 2 天数",startData:"开始时间",endData:"结束时间",limitDays:领取后天数,usefulWeek:"可使用星期;1 全部星期 2 部分星期",
                            weekStr":"部分星期选择;都号隔开",usefulTime:"可使用时间;1全部时间 2 部分时间段",timeStr:"部分时间端选择;分号隔开",limitUseOneTime:每次最多使用,limitUseOneDay:每天最多使用,ticketCoverType:"卷面样式;1 默认封面 2自定义封面"
                            ,Goods[{GoodsCode:商品编号,GoodsName:商品名称,GoodsCount:商品数量,UnitName:单位}],goodsLimit:[{goodsCode:限制商品编号,goodsName:限制商品名称,typeCode:限制类型编号,typeName:限制类型}]]`,
                            requestContent:
                                '{"functionName": "GetMemberTicket","orgCode": "0004","contentData": {"memberCode":"13075852439","ticketState":"", "consumeDateStart": "2024-01-01","consumeDateEnd": "2024-06-30","consumeOrgName": "梦田","ticketClassType":"1","pageSize":"10","pageIndex":"1"}}',
                            responeContent: `notUsed:未使用数量,used:已使用,expired:已过期,result:[Code:卡券编号,TicketName:优惠券名称,TicketCode:优惠券编号,UseConditionAmt:使用金额(满xx金额使用),TypeName:类型,CreateDate:创建时间,ExpireDate:失效时间,TicketAmt:卷面额度,attachment:图片路径
                            isUseByCondition:是否使用限制条件 0 否 1是,useLimit:使用数量,useAmt:满金额,grantCountLimit:"发放数量限制 0不限制 1限制",
                            countLimit:限制数量,maxCount:最大存量,usefulDateType:"有效期类型 1 时间段 2 天数",startData:"开始时间",endData:"结束时间",limitDays:领取后天数,usefulWeek:"可使用星期;1 全部星期 2 部分星期",
                            weekStr":"部分星期选择;都号隔开",usefulTime:"可使用时间;1全部时间 2 部分时间段",timeStr:"部分时间端选择;分号隔开",limitUseOneTime:每次最多使用,limitUseOneDay:每天最多使用,ticketCoverType:"卷面样式;1 默认封面 2自定义封面"
                            ,Goods[{GoodsCode:商品编号,GoodsName:商品名称,GoodsCount:商品数量,UnitName:单位}],goodsLimit:[{goodsCode:限制商品编号,goodsName:限制商品名称,typeCode:限制类型编号,typeName:限制类型}]]`,
                        },
                        {
                            index: "GetMemberCarInfo",
                            indexText: "会员卡操作记录列表",
                            requestRemark:
                                "no:卡号,orgName:首次消费门店名称,mobile:手机号,sex:性别 字典数据,openDateStart:交易开始日期,openDateEnd:交易结束日期,pageIndex:页码,pageSize:每页条数 {carNo:会员卡号,carName:会员卡名称,memberCode:会员账号,mobile:手机号,carState:1卡状态 1正常 2冻结 3挂失,typeName:会员卡类型,memberLevelName:会员等级,currentCoins:当前金币,currentAmt:本金,currentPoint:当前积分,openDate:开卡日期,currentAmtAct:当前余额,expireDate:失效日期,lastDate:最后一次消费日期,state:状态 1启用 0注销}",
                            requestContent:
                                '{"functionName": "GetMemberCarInfo","orgCode": "0004","contentData": {"no":"","orgName":"梦田","mobile":"","sex":"","openDateStart":"2023-01-11 12:12:12","openDateEnd":"2024-05-11 12:12:12","pageIndex":"1","pageSize":"15"}}',
                            responeContent: "充值完成",
                        },
                        {
                            index: "UpdateMemberCar",
                            indexText: "会员卡更新",
                            requestRemark:
                                "no:卡号,state:状态 1 正常 2 冻结 3 挂失",
                            requestContent:
                                '{"functionName": "UpdateMemberCar","orgCode": "0004","contentData": {"no":"","state":"1"}}',
                            responeContent: "充值完成",
                        },
                        {
                            index: "ChangeMemberAmt",
                            indexText: "会员卡调账",
                            requestRemark:
                                "no:卡号,type:1 充值调账 2消费调账,operAmt:调账金额,point:调账积分,Source:字典数据 570,presentCoins:调账赠送金币,reason:调账原因 字典数据568,payType:支付方式 字典数据569,orgName:门店名称",
                            requestContent:
                                '{"functionName": "ChangeMemberAmt","orgCode": "0004","contentData": {"no":"","type":"1","operAmt":"0","point":"0","source":"","presentCoins":"0","reason":"","orgName":"","payType":""}}',
                            responeContent: "调账完成",
                        },
                        {
                            index: "GetMemberAmt",
                            indexText: "会员卡资产",
                            requestRemark:
                                "no:卡号,currentAmt余额,currentCoins金币,currentPoint积分",
                            requestContent:
                                '{"functionName": "GetMemberAmt","orgCode": "0004","contentData": {"no":""}}',
                            responeContent: "调账完成",
                        },
                        {
                            index: "GetMemberCar",
                            indexText: "输入手机号获取会员卡列表",
                            requestRemark:
                                "mobile:手机号,no:卡号,carName:卡名称,memberCode:会员账号",
                            requestContent:
                                '{"functionName": "GetMemberCar","orgCode": "0004","contentData": {"mobile":""}}',
                            responeContent: "资产转移完成",
                        },
                        {
                            index: "TranMemberAmtToOther",
                            indexText: "会员卡资产转移",
                            requestRemark:
                                "fromNo:卡号,fromAmt:金额,fromCoins金币,fromPoint积分,toNo目标卡号,remark备注",
                            requestContent:
                                '{"functionName": "TranMemberAmtToOther","orgCode": "0004","contentData": {"fromNo":"","fromAmt":"","fromCoins":"","fromPoint":"","toNo":"","remark":""}}',
                            responeContent: "资产转移完成",
                        },
                        {
                            index: "GetTranOrderReacrd",
                            indexText: "获取交易订单记录",
                            requestRemark:
                                "referCode:订单批次号,fromAmt:金额,fromCoins金币,fromPoint积分,toNo目标卡号,remark备注",
                            requestContent:
                                '{"functionName": "GetTranOrderReacrd","orgCode": "0004","contentData": {"referCode":""}}',
                            responeContent: "资产转移完成",
                        },
                        {
                            index: "OrderAddPrint",
                            indexText: "补打收银小票",
                            requestRemark:
                                "orderBatchCode:订单批次号",
                            requestContent:
                                '{"functionName": "OrderAddPrint","orgCode": "0004","contentData": {"orderBatchCode":""}}',
                            responeContent: "资产转移完成",
                        },
                        {
                            index: "MemberBlack",
                            indexText: "会员拉黑",
                            requestRemark:
                                "memberCode:会员账号",
                            requestContent:
                                '{"functionName": "MemberBlack","orgCode": "0004","contentData": {"memberCode":""}}',
                            responeContent: "资产转移完成",
                        },
                        {
                            index: "MenberCodePay",
                            indexText: "会员付款码支付",
                            requestRemark:
                                "authCode:支付付款码,fee:付款金额,payType:付款方式1.微信，2.支付宝",
                            requestContent:
                                '{"functionName": "MenberCodePay","orgCode": "0004","contentData": {"authCode":"","fee":"","payType":""}}',
                            responeContent: "",
                        },
                        {
                            index: "MenberCodePayQuery",
                            indexText: "会员扫码支付查询",
                            requestRemark:
                                "OutTradeNo:商户订单号,payType:付款方式1.微信，2.支付宝",
                            requestContent:
                                '{"functionName": "MenberCodePayQuery","orgCode": "0004","contentData": {"OutTradeNo":"","payType":""}}',
                            responeContent: "",
                        },
                        {
                            index: "UpdateMemberLevel",
                            indexText: "会员卡升级",
                            requestRemark: `门店取登录的门店编码,cardNo:卡号`,
                            requestContent:
                                '{"functionName":"UpdateMemberLevel","orgCode": "0004","contentData":{"cardNo":"卡号"}}',
                            responeContent: ``,
                        },
                        {
                            index: "MemberUpPay",
                            indexText: "会员卡升级-支付确认",
                            requestRemark: `门店取登录的门店编码,cardNo:卡号`,
                            requestContent:
                                '{"functionName":"MemberUpPay","orgCode": "0004","contentData":{"payBatchCode":"支付批次号","tee":"金额","payType":"支付类型","tradeNo":"商户号","cardNo":"会员卡号"}}',
                            responeContent: `itemCode:交易流水号`,
                        },
                        {
                            index: "MemberUpPayRet",
                            indexText: "会员卡升级-支付撤销",
                            requestRemark: `门店取登录的门店编码,itemCodes:交易流水号itemCode(多个用,逗号隔开)`,
                            requestContent:
                                '{"functionName":"MemberUpPayRet","orgCode": "0004","contentData":{"itemCode":"交易流水号itemCodes(多个用,逗号隔开)"}}',
                            responeContent: ``,
                        },
                        {
                            index: "MemberRechargeRet",
                            indexText: "会员卡充值-支付撤销",
                            requestRemark: `门店取登录的门店编码,referCode:交易关联号,rechargeCode充值编号,cardNo:卡号`,
                            requestContent:
                                '{"functionName":"MemberRechargeRet","orgCode": "0004","contentData":{"referCode":"交易关联号","rechargeCode":"","cardNo":""}}',
                            responeContent: ``,
                        },
                        {
                            index: "MemberUpPayRecord",
                            indexText: "会员卡升级支付记录",
                            requestRemark: `门店取登录的门店编码,payBatchCode:支付批次号编号,amt:支付金额,payType:支付类型编号,tradeNo:微信支付宝商户单号,cardNo:卡号`,
                            requestContent:
                                '{"functionName":"MemberUpPayRecord","orgCode": "0004","contentData":{"payBatchCode":"支付批次号编号"}}',
                            responeContent: ``,
                        },
                        
                    ]
                },
                {
                    label: '排队接口',
                    options: [
                        {
                            index: "GetQueueTypeList",
                            indexText: "获取排队类型列表",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetQueueTypeList","orgCode": "0004","contentData":""}',
                        },
                        {
                            index: "GetQueueList",
                            indexText: "获取某类型排队列表",
                            requestRemark: "queueSymbol:排队类型编码(空=全部)\r\npageSize:页数\r\npageIndex:页码",
                            requestContent:
                                '{"functionName":"GetQueueList","orgCode": "0004","contentData":{"queueSymbol":""}}',
                        },
                        {
                            index: "GetQueueRecordList",
                            indexText: "获取排队记录列表",
                            requestRemark: "pageSize:页数\r\npageIndex:页码\r\nselectedDate:选择某一天",
                            requestContent:
                                '{"functionName":"GetQueueRecordList","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "AddQueueCall",
                            indexText: "新增排队取号",
                            requestRemark: "memberName:会员名称\r\nmemberMobile:会员手机号\r\npeopleNum:到店人数\r\nremark:备注 \r\n version:版本",
                            requestContent:
                                '{"functionName": "AddQueueCall","orgCode": "0015","contentData": {"nmemberMobile":"","peopleNum":"3","remark":"","version":"trial"}}',
                            responeContent: "{}",
                        },
                        {
                            index: "queueTop",
                            indexText: "排队置顶",
                            requestRemark: `code:当前请求唯一键`,
                            requestContent:
                                '{"functionName":"queueTop","orgCode":"0015","contentData":{"code":""}}',
                        },
                        {
                            index: "QueueCall",
                            indexText: "排队叫号",
                            requestRemark: "code:排队编码",
                            requestContent:
                                '{"functionName":"QueueCall","orgCode": "0004","contentData":{"code":""}}',
                        },
                        {
                            index: "QueueSeat",
                            indexText: "排队入座",
                            requestRemark: "code:排队编码 \r\n roomCode:房台编码",
                            requestContent:
                                '{"functionName":"QueueSeat","orgCode": "0004","contentData":{"code":"","roomCode":""}}',
                        },
                        {
                            index: "QueuePass",
                            indexText: "排队过号",
                            requestRemark: "code:排队编码",
                            requestContent:
                                '{"functionName":"QueuePass","orgCode": "0004","contentData":{"code":""}}',
                        },
                        {
                            index: "QueueRePrintReceipts",
                            indexText: "重打小票",
                            requestRemark: "code:排队编码",
                            requestContent:
                                '{"functionName":"QueueRePrintReceipts","orgCode": "0004","contentData":{"code":""}}',
                        },
                        {
                            index: "QueueClear",
                            indexText: "排队清零",
                            requestRemark: "queueSymbol:排队类型编码(空=全部)",
                            requestContent:
                                '{"functionName":"QueueClear","orgCode": "0004","contentData":{"queueSymbol":"B"}}',
                        },
                        {
                            index: "ReQueue",
                            indexText: "重新排队",
                            requestRemark: "code:排队编码",
                            requestContent:
                                '{"functionName":"ReQueue","orgCode": "0004","contentData":{"code":""}}',
                        },
                        {
                            index: "QueueBlock",
                            indexText: "加入排队黑名单",
                            requestRemark: "code:排队编码 \r\n remark:备注",
                            requestContent:
                                '{"functionName":"QueueBlock","orgCode": "0004","contentData":{"code":"","remark":""}}',
                        },
                        {
                            index: "QueueSummary",
                            indexText: "排队统计",
                            requestRemark: "beginTime:开始时间\r\nendTime:结束时间",
                            requestContent:
                                '{"functionName":"QueueSummary","orgCode": "0004","contentData":{"beginTime":"","endTime":""}}',
                        },
                        {
                            index: "GetQueueCallSetConfig",
                            indexText: "获取排队呼叫设置信息",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetQueueCallSetConfig","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "QueueCallSet",
                            indexText: "排队呼叫设置",
                            requestRemark: "code:编码 \r\n code:编码 \r\n isCloseMiniQueue:是否关闭小程序 \r\n callNum:呼叫次数 \r\n startPrompt:开始提示语 \r\n endPrompt:结束提示语 \r\n voiceType:语音类型 0:默认 1:自定义 \r\n baseVoiceValue:基础语 0:默认 或 合成语音值",
                            requestContent:
                                '{"functionName":"QueueCallSet","orgCode": "0004","contentData":{"code":"","isCloseMiniQueue":"0","callMode":"1","callNum":"1","startPrompt":"梦田酒吧","endPrompt":"请你就餐","voiceType":"0","baseVoiceValue":"0"}}',
                        },
                        {
                            index: "GetSpeechPersonList",
                            indexText: "获取语音人员列表",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetSpeechPersonList","orgCode": "0004","contentData":{}}',
                        },
                        
                        {
                            index: "CreateSpeech",
                            indexText: "语音合成",
                            requestRemark: "perCode:配音编码 \r\n text:配音文本",
                            requestContent:
                                '{"functionName":"CreateSpeech","orgCode": "0004","contentData":{"perCode":"0","text":""}}',
                        },
                        {
                            index: "GetBaseVoiceList",
                            indexText: "获取基础语列表",
                            requestRemark: "voiceType(0:默认 1:自定义)",
                            requestContent:
                                '{"functionName":"GetBaseVoiceList","orgCode": "0004","contentData":{"voiceType":"0"}}',
                        },
                        {
                            index: "GetSpeechList",
                            indexText: "获取合成语音列表",
                            requestRemark: "voiceType(0:默认 1:自定义)",
                            requestContent:
                                '{"functionName":"GetSpeechList","orgCode": "0004","contentData":{"voiceType":"0"}}',
                        },
                        {
                            index: "DeleteSpeechFile",
                            indexText: "删除合成配音",
                            requestRemark: "fileName:文件名",
                            requestContent:
                                '{"functionName":"DeleteSpeechFile","orgCode": "0004","contentData":{"fileName":""}}',
                        },
                        {
                            index: "ReNameSpeechFile",
                            indexText: "重命名合成配音",
                            requestRemark: "oldFileName:旧文件名 \r\n newFileName:新文件名",
                            requestContent:
                                '{"functionName":"ReNameSpeechFile","orgCode": "0004","contentData":{"oldFileName":"","newFileName":""}}',
                        },
                        
                        {
                            index: "QueueCallTest",
                            indexText: "排队呼叫测试",
                            requestRemark: "callNo:排队号",
                            requestContent:
                                '{"functionName":"QueueCallTest","orgCode": "0004","contentData":{"callNo":"A6"}}',
                        },
                    ]
                },

                {
                    label: '存取酒接口',
                    options: [
                        {
                            index: "GetStoreWineList",
                            indexText: "获取存酒列表",
                            requestRemark: "roomName:房台号 \r\n memberMobile:客户电话 \r\n maintainUserName:订台人 \r\n isFull:是否整瓶 \r\n pageSize:页数 \r\n pageIndex:页码 \r\n opType:(1:待寄存 2:待领取) ",
                            requestContent:
                                '{"functionName":"GetStoreWineList","orgCode": "0004","contentData":{"opType":"1","memberMobile":""}}',
                        },
                        {
                            index: "OpStoreWineState",
                            indexText: "操作存酒状态",
                            requestRemark: "code:存酒编码 \r\n opType:存酒操作类型(0:拒绝 1:确认) \r\n storeQty:存酒数量",
                            requestContent:
                                '{"functionName":"OpStoreWineState","orgCode": "0004","contentData":{"code":"","opType":"1"}}',
                        },
                        {
                            index: "RePrintStoreWine",
                            indexText: "补打存酒小票",
                            requestRemark: "code:存酒编码",
                            requestContent:
                                '{"functionName":"RePrintStoreWine","orgCode": "0004","contentData":{"code":""}}',
                        },
                        {
                            index: "GetStoreWineRecordList",
                            indexText: "获取存酒记录列表",
                            requestRemark: "pageSize:页数 \r\n pageIndex:页码 \r\n memberMobile:客户电话 \r\n goodsName:酒水名称 \r\n maintainUserName:订台人\r\n beginStoreDate:开始存酒日期 \r\n endStoreDate:结束存酒日期 \r\n isFull:是否整瓶 \r\n state:状态(0:待寄存 1:已寄存 4:已过期 5:已回收 9:已拒绝) \r\n beginExpireDate:开始到期时间 \r\n endExpireDate:结束到期时间\r\n remainQtyType:剩余数量（空：全部 1:大于0）",
                            requestContent:
                                '{"functionName":"GetStoreWineRecordList","orgCode": "0004","contentData":{"memberMobile":""}}',
                        },
                        {
                            index: "OpStoreWineDelayDay",
                            indexText: "操作存酒延长天数",
                            requestRemark: "code:存酒编码 \r\n delayDay:延长天数",
                            requestContent:
                                '{"functionName":"OpStoreWineDelayDay","orgCode": "0004","contentData":{"code":"","delayDay":"3"}}',
                        },
                        {
                            index: "GetTakeWineRecordList",
                            indexText: "获取取酒记录列表",
                            requestRemark: "storeCode:存酒编码 \r\n pageSize:页数 \r\n pageIndex:页码 \r\n memberName:客户姓名 \r\n memberMobile:客户电话 \r\n goodsName:酒水名称 \r\n beginTakeDate:开始取酒日期 \r\n endTakeDate:结束取酒日期 \r\n isFull:是否整瓶 \r\n state:(0:拒绝 1:成功 )",
                            requestContent:
                                '{"functionName":"GetTakeWineRecordList","orgCode": "0004","contentData":{"memberMobile":""}}',
                        },
                        {
                            index: "GetWineRecoveryRecordList",
                            indexText: "获取酒水回收列表",
                            requestRemark: "roomCode:回收桌号 \r\n pageSize:页数 \r\n pageIndex:页码 \r\n goodsName:酒水名称 \r\n beginRecoveryDate:开始回收日期 \r\n endRecoveryDate:结束回收日期 \r\n recoveryUser:回收人编码 \r\n recoveryType:回收类型 0：空瓶 1：非整瓶 2:整瓶",
                            requestContent:
                                '{"functionName":"GetWineRecoveryRecordList","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "OpTakeWineState",
                            indexText: "操作取酒状态",
                            requestRemark: "code:取酒编码 \r\n opType:取酒操作类型(0:拒绝 1:确认) \r\n takeQty:存酒数量",
                            requestContent:
                                '{"functionName":"OpTakeWineState","orgCode": "0004","contentData":{"code":"","opType":"1","takeQty":"2"}}',
                        },
                        {
                            index: "GetRoomConsumeWineList",
                            indexText: "获取本次房台消费酒水列表",
                            requestRemark: "roomName:房台名称 \r\n memberMobile:客户电话\r\n maintainUserName:订台人",
                            requestContent:
                                '{"functionName":"GetRoomConsumeWineList","orgCode": "0004","contentData":{"roomName":"","memberMobile":"","maintainUserName":""}}',
                        },
                        {
                            index: "GetWineTypeList",
                            indexText: "获取酒水分类列表",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetWineTypeList","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "OpStoreWine",
                            indexText: "存酒操作",
                            requestRemark: "memberMobile:会员手机号 \r\n roomCode:房台编码 \r\n images:酒水照片 \r\n consumeCode:消费单号 \r\n remark:备注 \r\n goods:[{\"goodsCode\",\"商品编码\",\"goodsName\":\"商品名称\",\"uomCode\",\"单位编码\",\"uomName\":\"单位名称\",\"storeQty\":\"存酒数量\",\"storeDay\":\"存酒天数\"}] 商品列表 ",
                            requestContent:
                                '{"functionName":"OpStoreWine","orgCode": "0004","contentData":{"memberMobile":"18605015820","roomCode":"0004003","images":"","consumeCode":"","remark":"加冰","goods":"[{\\"goodsCode\\":\\"P000012\\",\\"goodsName\\":\\"科罗娜\\",\\"uomCode\\":\\"041007\\",\\"uomName\\":\\"瓶\\",\\"storeQty\\":\\"10\\",\\"storeDay\\":\\"9\\"}]"}}',
                        },
                        {
                            index: "GetTakeWineList",
                            indexText: "获取待取酒列表",
                            requestRemark: " memberMobile:客户电话 \r\n memberName:客户名称 \r\n maintainUserName:订台人  pageSize:页数 \r\n pageIndex:页码 ",
                            requestContent:
                                '{"functionName":"GetTakeWineList","orgCode": "0004","contentData":{"memberMobile":""}}',
                        },
                        {
                            index: "OpTakeWine",
                            indexText: "取酒操作",
                            requestRemark: "memberMobile:会员手机号 \r\n roomCode:房台编码 \r\n storeCode:存酒编码 \r\n takeQty:取酒数量",
                            requestContent:
                                '{"functionName":"OpTakeWine","orgCode": "0004","contentData":{"memberMobile":"18605015820","roomCode":"0004003","storeCode":"","takeQty":"2"}}',
                        },
                        {
                            index: "GetEmptyBottleList",
                            indexText: "获取空瓶可回收酒水列表",
                            requestRemark: "goodsName:商品名称",
                            requestContent:
                                '{"functionName":"GetEmptyBottleList","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "OpCoveryWine",
                            indexText: "回收酒水操作",
                            requestRemark: "roomCode:房台编码 \r\nimages:酒水照片 \r\n coveryUserCode:回收人编码 \r\n coveryUserName:回收人名称 \r\n depotCode:仓库编码 \r\n depotName:仓库名称 \r\n remark:备注 \r\n goods:[{\"goodsCode\",\"商品编码\",\"goodsName\":\"商品名称\",\"uomCode\",\"单位编码\",\"uomName\":\"单位名称\",\"recoveryQty\":\"回收数量\",\"type\":\"回收类型(0:空瓶 1：非整瓶 2:整瓶)\"}] 商品列表 ",
                            requestContent:
                                '{"functionName":"OpCoveryWine","orgCode": "0004","contentData":{"memberMobile":"18605015820","roomCode":"0004003","images":"","coveryUserCode":"0003","coveryUserName":"张三","depotCode":"000401","depotName":"仓库A","remark":"加冰","goods":"[{\\"goodsCode\\":\\"P000012\\",\\"goodsName\\":\\"科罗娜\\",\\"uomCode\\":\\"041007\\",\\"uomName\\":\\"瓶\\",\\"recoveryQty\\":\\"10\\",\\"type\\":\\"0\\"}]"}}',
                        },
                        {
                            index: "GetDepotList",
                            indexText: "获取仓库列表",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetDepotList","orgCode": "0004","contentData":{}}',
                        },
                        {
                            index: "GetSotreWineStat",
                            indexText: "获取(存)酒库存统计",
                            requestRemark: " selectedDate:盘点日期 \r\n  goodsName:酒水名称 \r\n  isFull:是否整瓶 \r\n pageSize:页数 \r\n pageIndex:页码 ",
                            requestContent:
                                '{"functionName":"GetSotreWineStat","orgCode": "0004","contentData":{"selectedDate":"2024-04-29","goodsName":""}}',
                        },
                        {
                            index: "GetRecoveryWineStat",
                            indexText: "获取(回收)库存统计",
                            requestRemark: " beginDate:开始日期 \r\n endDate:结束日期 \r\n goodsName:酒水名称 \r\n  fullType:0:空瓶 1:非整瓶 2:整瓶 \r\n pageSize:页数 \r\n pageIndex:页码 ",
                            requestContent:
                                '{"functionName":"GetRecoveryWineStat","orgCode": "0004","contentData":{"beginDate":"2024-04-20","endDate":"2024-04-29"}}',
                        },
                        {
                            index: "GetSotreTakeWineStat",
                            indexText: "获取(存取酒)库存统计",
                            requestRemark: " beginDate:开始日期 \r\n endDate:结束日期 \r\n goodsName:酒水名称 \r\n  isFull:是否整瓶 \r\n pageSize:页数 \r\n pageIndex:页码 ",
                            requestContent:
                                '{"functionName":"GetSotreTakeWineStat","orgCode": "0004","contentData":{"beginDate":"2024-04-20","endDate":"2024-04-30"}}',
                        },
                    ]
                },
                {
                    label: '点单接口',
                    options: [
                        {
                            index: "GetTodayRoomInfo",
                            indexText: "获取点单房台列表",
                            requestRemark: "orgCode:机构编号\r\nreserveTime:预订时间(当前日期),roomState 0 空闲 1 预定 2 使用中 3 未支付 -1 维修 -2 锁定,typeCode:房台类型 {totalCount:总数,noCount:空闲,useCount:使用中,reserveCount:预定,repairCount:维修,lockCount:锁定,areaRooms:[{roomCode:桌台编号,roomName:桌台名称,typeCode:类型编号,typeName:类型名称,minConsume:低消,consumeCode:消费编号,reserveCode:预定编号,maxPeople:最大人数,roomState:状态编码,roomStateDesc:状态名称,arrivedPeopleCount:到达人数,startTime:开台时间,mainTainUserName:订台人,memberName:客户,remark:备注,unPayAmt:未支付金额,disAmt:优惠金额}]",
                            requestContent:
                                '{"functionName": "GetTodayRoomInfo","orgCode": "0004","contentData": {"reserveTime":"2024-03-21 10:00:00","roomState":"","typeCode":"","pageSize":15,"pageIndex":1}}',
                            responeContent: "{totalCount:总数,noCount:空闲,useCount:使用中,reserveCount:预定,repairCount:维修,lockCount:锁定,areaRooms:[{roomCode:桌台编号,roomName:桌台名称,typeCode:类型编号,typeName:类型名称,minConsume:低消,consumeCode:消费编号,reserveCode:预定编号,maxPeople:最大人数,roomState:状态编码,roomStateDesc:状态名称,arrivedPeopleCount:到达人数,startTime:开台时间,mainTainUserName:订台人,memberName:客户,remark:备注,unPayAmt:未支付金额,disAmt:优惠金额}]",
                        },
                        {
                            index: "roomLock",
                            indexText: "房台锁定/正常",
                            requestRemark: `roomList 房台列表(多个逗号隔开) currentDate:当前时间 state 1 设置锁定 0 设置解锁`,
                            requestContent:
                                '{"functionName":"RoomLock","contentData":{"roomList":"0004006","state":"2","currentDate":"2024-04-15 00:00:00"}}',
                        },
                        {
                            index: "GetGoodsTypeOrg",
                            indexText: "商品分类",
                            requestRemark: "",
                            requestContent:
                                '{"functionName":"GetGoodsTypeOrg","orgCode": "0004","contentData":""}',
                            responeContent: "{goodsTypeCode:分类编码,goodsTypeName:分类名称,state:状态}",
                        },
                        {
                            index: "getGoodsInfo",
                            indexText: "获取商品信息",
                            requestRemark: `门店取登录的门店编码 pageSize每页大小 pageIndex页码 shortName 简称 goodsType 分类
                            单品或制作类{"goodsType":"门店商品分类","goodsCode":"商品编码","goodsName":"商品名称","groupTypeCode":"分组编码(046002:成品类或单品,046002:制作类或单品,046002:套餐)","groupTypeName":"分组名称","saleQty":"已销售数量","attachment":"图片.暂没使用","mainAttachment":"主图片.暂没使用","salePrice":"售价","suggestPrice":"建议售价","type":"0:单品只有一个价格,1:单品单位不同有多个价格,2:套餐","priceList":[{"itemCode":"每条记录的编码由商品编码+门店+单位组成","orgCode":"门店编码","goodsCode":"商品编码","goodsName":"商品名称","uomCode":"单位","uomName":"单位","salePrice":"售价","producePoint":"出品点","goodsFlavor":"口味","isEstmClear":"沽清状态(0:售卖,1沽清)","state":"0 下架 1 上架 ","mainAttachment":"图片"}]}
                            套餐{}
                            `,
                            requestContent:
                                '{"functionName":"getGoodsInfo","contentData":{"pageIndex":"1","pageSize":"10","shortName":"1","goodsType":"000400"}}',
                        },
                        {
                            index: "orderAdd",
                            indexText: "下单(编辑订单)",
                            requestRemark: `门店取登录的门店编码,consumeCode:消费单号,orderBatchCode:点单批次号(房台信息中获取,如果不存在支付中的数据进行点单需要传),roomCode:房台编码,remark:整单备注,operType:签送赋值2,其他为空,detail:点单详情,payType:1已出品(下单) 2未出品(结账),itemCode:主键(新增时候为空),doType:操作类型(Add:新增Edit修改Delte删除),itemType:记录说明(1单品2套餐3套餐详情),goodsPriceCode:套餐编码(单品为空),goodsCode:商品编码,goodsName:商品名称,uomCode:单位编码,uomName:单位名称,flavor:口味 多个用逗号隔开,salePrice:售价,vipPrice:会员价,orderQty:点单数量,producePoint:出品点`,
                            requestContent:
                                '{"functionName":"orderAdd","contentData":{"consumeCode":"0004202402050006","orderBatchCode":"","roomCode":"0004003","remark":"速上","operType":"2","payType":"1","detail":[{"itemCode":"","doType":"add","indexStr":"1","itemType":"1","goodsPriceCode":"","goodsCode":"p000001","goodsName":"百威","uomCode":"041010","uomName":"支","flavor":"加冰","salePrice":"30","vipPrice":"29","orderQty":"2","producePoint":"000403"},{"itemCode":"","doType":"add","indexStr":"2","itemType":"2","goodsPriceCode":"p013087","goodsCode":"p013087","goodsName":"醇黑套餐","uomCode":"041006","uomName":"套","flavor":"","salePrice":"470.00","orderQty":"1","producePoint":"000403"},{"itemCode":"","doType":"add","indexStr":"3","itemType":"3","goodsPriceCode":"p013087","goodsCode":"p013086","goodsName":"醇黑","uomCode":"041010","uomName":"支","flavor":"加冰","salePrice":"400","orderQty":"1","producePoint":"000403"},{"itemCode":"","doType":"add","indexStr":"4","itemType":"3","goodsPriceCode":"p013087","goodsCode":"p000009","goodsName":"可乐","uomCode":"041010","uomName":"支","flavor":"加冰","salePrice":"10","orderQty":"6","producePoint":"000403"},{"itemCode":"","doType":"add","indexStr":"5","itemType":"3","goodsPriceCode":"p013087","goodsCode":"p000007","goodsName":"纸巾","uomCode":"041008","uomName":"包","flavor":"","salePrice":"5","orderQty":"2","producePoint":"000403"}]}}',
                        },
                        {
                            index: "UpdateOrderRemark",
                            indexText: "更新整单备注",
                            requestRemark: `门店取登录的门店编码,remark:备注,payBatchCode:订单批次号`,
                            requestContent:
                                '{"functionName":"UpdateOrderRemark","contentData":{"payBatchCode":"0004202404290010150448","remark":"速上"}}',
                        },
                        {
                            index: "GetFlavorPc",
                            indexText: "获取口味",
                            requestRemark: `门店取登录的门店编码,typeCode:口味组编号 (字典数据577)`,
                            requestContent:
                                '{"functionName":"GetFlavorPc","contentData":{"typeCode":"577006"}}',
                        },
                        {
                            index: "GetPayBatchGoodsList",
                            indexText: "获取买单批次列表",
                            requestRemark: `consumeCode:消费单号 \r\n payBatchCode:买单批次号 \r\n state:(0:所有 1:未结账 2:已结账 3:支付中) \r\n pageSize:页数 \r\n pageIndex:页码`,

                            requestContent: '{"functionName":"GetPayBatchGoodsList","contentData":{"consumeCode":"0004202404290010","state":"0"}}',
                            responseContent: {
                                consumeCode: "台单号",
                                payBatchCode: "账单号",
                                memberName: "客户名称",
                                memberMobile: "手机号",
                                roomCode: "房台编号",
                                roomName: "房台名称",
                                openTime: "开台时间",
                                realAmt: "实际支付金额",
                                consumeList: [
                                    {
                                        itemCode: "点单列表商品编号",
                                        memberName: "刘德华",
                                        memberMobile: "18989898989",
                                        goodsCode: "商品编号",
                                        goodsName: "商品名称",
                                        uomCode: "单位编号",
                                        uomName: "单位",
                                        flavor: "口味",
                                        salePrice: "单价",
                                        sourceOrderQty: "原订单数量",
                                        sourceRealAmt: "原订单金额",
                                        minusOrderQty: "扣除数量",
                                        minusRealAmt: "扣除金额",
                                        orderQty: "最终订单数量",
                                        realAmt: "最终实际支付金额",
                                        orderUser: "订单人",
                                        orderTime: "订单时间",
                                        sourceType: "来源('0服务员端,1小程序端,2PC端')",


                                        isWakeUp: "是否叫起",
                                        isPackage: "是否套餐",
                                        state: "支付状态",
                                        subGoods: [{ goodsCode: "商品编号", goodsName: "名称", uomCode: "单位编码", uomName: "单位", price: "单价", orderQty: "数量" }]
                                    }
                                ]
                            },
                        },
                        {
                            index: "OpPayBatchReturnGoods",
                            indexText: "退菜",
                            requestRemark: `consumeCode:消费单号 \r\n payBatchCode:买单批次号 \r\n returnReason:退菜原因 \r\n detail:退菜详情`,
                            requestContent: '{"functionName":"OpPayBatchReturnGoods","contentData":{"consumeCode":"0004202405130001","payBatchCode":"0004202405090001101109","returnReason":"出品超时","detail":[{"itemCode":"0004202405130001001","goodsCode":"P000012","goodsName":"科罗娜","uomCode":"041007","uomName":"瓶","salePrice":"45.00","returnQty":"2","totalAmount":"90.00"}]}}',
                        },
                        {
                            index: "OpPayBatchChangeGoods",
                            indexText: "换菜",
                            requestRemark: `consumeCode:消费单号   \r\n detail:换菜详情(isNew:0旧菜，1新菜) \r\n remark:整单备注`,
                            requestContent:
                                '{"functionName":"OpPayBatchChangeGoods","contentData":{"consumeCode":"","detail":[{"isNew":"0","itemCode":"","goodsCode":"P000012","goodsName":"科罗娜","uomCode":"041007","uomName":"瓶","flavor":"","salePrice":"45.00","goodsQty":"2"},{"isNew":"1","itemCode":"","goodsCode":"P000021","goodsName":"绿茶","uomCode":"041007","uomName":"瓶","flavor":"加冰","salePrice":"5.00","goodsQty":"1"}]}}',
                        },
                        {
                            index: "GetPayBatchPayRecord",
                            indexText: "获取买单批次支付记录",
                            requestRemark: `consumeCode:消费单号 \r\n payBatchCode:买单批次号 `,
                            requestContent: '{"functionName":"GetPayBatchPayRecord","contentData":{"consumeCode":"0004202402050005","payBatchCode":"0004202402050005194704"}}',
                        },
                        {
                            index: "Refund",
                            indexText: "退款",
                            requestRemark: `TradeNo:商户订单号 \r\n PayType:支付类型 1:微信,2支付宝 \r\n RefundFee:退款金额 \r\n PayMoney:付款金额`,
                            requestContent: '{"functionName":"Refund","orgCode": "0015","contentData":{"TradeNo":"","PayType":"","RefundFee":"","PayMoney":""}}',
                        },
                        {
                            index: "OrderRefund",
                            indexText: "订单退款",
                            requestRemark: `consumeCode:消费单号 \r\n roomCode:房台编码 \r\norderBatchCode:订单批次号 \r\n payBatchCode:买单批次号 \r\n roomCode:房台号 \r\n remark:备注 TradeNo:商户订单号 \r\n detail:退款明细`,
                            requestContent: '{"functionName":"OrderRefund","contentData":{"consumeCode":"","roomCode":"","orderBatchCode":"","payBatchCode":"","detail":[{"payItemCode":"","payType":"001","refundFee":"0.01","tradeNo":"","memberCode":""}]}}',
                        },
                        {
                            index: "GoodChangeRefundStatistics",
                            indexText: "换菜退菜退款统计",
                            requestRemark: `consumeCode:消费单号  \r\n payBatchCode:买单批次号 `,
                            requestContent: '{"functionName":"GoodChangeRefundStatistics","contentData":{"consumeCode":"","payBatchCode":""}}',
                        },
                        {
                            index: "GetOrderDetail",
                            indexText: "获取已点商品列表",
                            requestRemark: `门店取登录的门店编码,orderBatchCode:订单批次号,pageIndex:页码,pageSize:每页数量
                            totalAmt:合计金额,totalCount:商品数量,itemCode:订单商品编号,goodsCode:商品编号,goodsName:商品名称,uomName:商品单位,orderQty:数量,salePrice:单价,flavor:口味,goodsInfoDetail[套餐明细]`,
                            requestContent:
                                '{"functionName":"GetOrderDetail","contentData":{"orderBatchCode":"0004202401300012100351","pageIndex":"1","pageSize":"15"}}',
                        },
                        {
                            index: "OrderPay",
                            indexText: "买单确认",
                            requestRemark: `门店取登录的门店编码,consumeCode:消费单号,tradeNo:商户交易单号(微信或者支付宝支付完后返回的tradeNo),roomCode:房台编码,payUser:付款人(代付),payBatchCode:批次号(首次买单为空,后续再买单将首次的批次号传入),detailList:付款商品列表(使用点单的itemCode),otherPayType:其他支付子类 字典数据 578,orderAmt:点单商品金额,realPayAmt:实际收款金额,payList:支付列表(手机端只有一条,电脑端可能有多条),totalAmt:本次需要的付款金额,payAmt:客人付款金额(现金可能大于点单金额,需要有找零和抹零,其他方式totalAmt==payAmt),giveChange:找零金额,smallChange:抹零金额,cardNo:会员卡号(会员付款),memberName:会员姓名,memberMobile:电话,memberOpenId:openid,payType:支付方式(001现金 002微信 003支付宝 004会员卡 005消费卷 006银联 007其他 008挂账 009聚合支付 010团购券 011赠送 012会员优惠券),mountUser:挂账人名称(挂账支付需要传),mountMobile挂账人手机号(挂账支付需要传),mountSex挂账人性别(字典数据编号011)(挂账支付需要传),suretyUser:担保人编号,服务员数据(挂账支付需要传),giftUser:赠送人服务员数据(赠送支付需要传),giftRemark:赠送备注(赠送支付需要传),notGiveChange:找赎金额(现金支付需要传)`,
                            requestContent:
                                '{"functionName":"OrderPay","orgCode": "0004","contentData":{"serviceAmt":[{"code":"买单批次号","type":"抹零/服务费/折扣优惠/补低消/会员折扣优惠","subType":"子类型","amt":"金额"}],"consumeCode":"0004202402050006","roomCode":"0004003","payUser":"","otherPayType":"578001",""payBatchCode":"","memberTicketCode":"使用的会员券编码","tradeNo":"商户单号","detailList":"0004202402050006001,0004202402050006002","orderAmt":"495.5","realPayAmt":"495","payType":"001","payList":[{"totalAmt":"495.5","payAmt":"500","giveChange":"5","smallChange":"0.5","cardNo":"","memberName":"","memberMobile":"","memberOpenId":"","payType":"001","mountUser":"","mountMobile":"","mountSex":"","suretyUser":"","giftUser":"","giftRemark":"","notGiveChange":""}]}}',
                            responeContent: `{payBatchCode:买单批次号,itemCode:每次支付的交易流水号}`,
                        },
                        // {
                        //     index: "GiftOrderPay",
                        //     indexText: "赠送支付",
                        //     requestRemark: `门店取登录的门店编码,itemCodeList:选中的商品itemCode(多个用逗号隔开),giftUser:赠送人,giftRemark:赠送备注`,
                        //     requestContent:
                        //         '{"functionName":"GiftOrderPay","orgCode": "0004","contentData":{"itemCodeList":"123,123","giftUser":"123","giftRemark":"123"}}',
                        //     responeContent: `{payBatchCode:买单批次号,payAmt:付款金额,smallChange:抹零金额}`,
                        // },

                        {
                            index: "GetRoomOrderStateList",
                            indexText: "获取结账主页左侧栏和头部信息",
                            requestRemark: `门店取登录的门店编码,consumeCode:消费单号,consumeInfo 头部信息 {roomName:房台名称,arrivedPeopelCount:人数,memberName:顾客名称,memberMobile:手机号,waiterName:服务员,maintainUserName:订台人} totalComsume台单信息{beforeRoomName原桌台,comsumeCode台单号,startTime开台时间,totalAmt总金额,mainCount项数,mainGoodsCount份数,unPayAmt未支付金额,isFinish是否完成 true false}
                            payPending 支付中[{payBatchCode账单号,payAmt支付金额,unPayAmt未支付金额,payMainCount项数,payMainGoodsCount份数,payTime结账时间,processState:1 支付中}]
                            payFinish 已支付[{payBatchCode账单号,payAmt支付金额,payMainCount项数,payMainGoodsCount份数,payTime结账时间,processState:2 已支付}]`,
                            requestContent:
                                '{"functionName":"GetRoomOrderStateList","orgCode": "0004","contentData":{"consumeCode":"0004202402050006"}}',
                            responeContent: `{payBatchCode:买单批次号,payAmt:付款金额,smallChange:抹零金额}`,
                        },
                        {
                            index: "GetSignRecordList",
                            indexText: "获取签送菜品记录",
                            requestRemark: `beginTime:开始时间 \r\n endTime:结束时间 \r\n consumeCode:消费单号 \r\n roomCode:桌台号 \r\n giftUser:赠送人 \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetSignRecordList","contentData":{"consumeCode":""}}',
                            responseContent: {
                                consumeCode: "消费单号",
                                roomCode: "房台编码",
                                roomName: "房台名称",
                                goodsCode: "商品编码",
                                goodsName: "商品名称",
                                uomCode: "单位编码",
                                uomName: "单位名称",
                                salePrice: "单价",
                                orderQty: "数量",
                                realAmt: "赠送金额",
                                giveType: "赠送类型",
                                giftUser: "赠送人",
                                giftTime: "赠送时间",
                                giftRemark: "增送备注",
                                state: "状态",
                                subGoods: "套餐子商品",
                            }
                        },
                        {
                            index: "GetGiftRecordList",
                            indexText: "获取赠送菜品记录",
                            requestRemark: `beginTime:开始时间 \r\n endTime:结束时间 \r\n consumeCode:消费单号 \r\n roomCode:桌台号 \r\n giftUser:赠送人 \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetGiftRecordList","contentData":{"consumeCode":""}}',
                            responseContent: {
                                consumeCode: "消费单号",
                                roomCode: "房台编码",
                                roomName: "房台名称",
                                goodsCode: "商品编码",
                                goodsName: "商品名称",
                                uomCode: "单位编码",
                                uomName: "单位名称",
                                salePrice: "单价",
                                orderQty: "数量",
                                realAmt: "赠送金额",
                                giveType: "赠送类型",
                                orderUser: "赠送人",
                                orderTime: "赠送时间",
                                remark: "增送备注",
                                state: "状态",
                                subGoods: "套餐子商品",
                            }

                        },
                        {
                            index: "GetPayStatistics",
                            indexText: "获取结账主页下方金额统计",
                            requestRemark: `consumeCode:台单号(查询总单数据只传台单号) \r\n payBatchCode:帐单批次号(支付中和已支付的数据只传买单批次号) \r\n
                            totalOrderAmt:订单总金额 \r\n unOrderPay:未支付金额 \r\n mainCount:项数 \r\n mainGoodsCount:份数
                            disAmtTotal 总优惠金额 disAmt优惠明细{storeDisAmt门店优惠,vipDisAmt会员折扣优惠,vipAmt会员价优惠,smallChange抹零,disAmt促销价优惠}
                            otherAmtTotal 其他金额 otherAmt其他明细{serviceAmt服务费,balanceAmt补低消差额,roomAmt餐位费,packAmt包装费,tranAmt配送费}
                            collectAmtTotal 收款金额 collectAmt收款明细{wechatAmt 微信支付,cashAmt现金支付,aliPayAmt支付宝,vipAmt会员支付,otherAmt其他支付,bankAmt银联支付}`,
                            requestContent: '{"functionName":"GetPayStatistics","contentData":{"consumeCode":"0004202404190001","payBatchCode":""}}',
                        },
                        {
                            index: "GetReturnChangeGoodsRecord",
                            indexText: "获取退换菜记录",
                            requestRemark: `beginTime:开始时间 \r\n endTime:结束时间 \r\n consumeCode:消费单号 \r\n roomCode:桌台号 \r\n opUser:操作人 \r\n  \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetReturnChangeGoodsRecord","contentData":{}}',
                            responseContent: {
                                consumeCode: "消费单号",
                                roomCode: "房台编码",
                                roomName: "房台名称",
                                goodsCode: "商品编码",
                                goodsName: "商品名称",
                                uomCode: "单位编码",
                                uomName: "单位名称",
                                salePrice: "单价",
                                orderQty: "数量",
                                realAmt: "金额",
                                orderUser: "点单员",
                                orderTime: "下单时间",
                                sourceType: "下单来源(0:服务员端 1：小程序端 2:PC端)",
                                opUser: "操作员",
                                opDate: "操作时间",
                                flavor: "口味",
                                isPackage: "是否套餐",
                                state: "状态",
                                subGoods: "套餐子商品",
                            }
                        },
                        {
                            index: "GetClearOrder",
                            indexText: "清台记录",
                            requestRemark: `roomCode:桌台编号 \r\n pageIndex:页码,pageSize每页大小,startTime开始时间,endTime结束时间 `,
                            requestContent: '{"functionName":"GetClearOrder","contentData":{"pageIndex":"1","pageSize":"15","startTime":"2024-04-01 01:01:01","endTime":"2024-06-01 23:23:23","roomCode":"0004001"}}',
                        },
                        {
                            index: "RoomRest",
                            indexText: "复台操作",
                            requestRemark: `roomCode:桌台编号 \r\n toRoomCode:目标桌台`,
                            requestContent: '{"functionName":"RoomRest","contentData":{"toRoomCode":"0004001","roomCode":"0004001"}}',
                        },
                        {
                            index: "ConsumeEdit",
                            indexText: "修改桌台信息",
                            requestRemark: `门店取登录的门店编码
                            consumeCode:订单号,roomCode:房台编码,memberName:会员姓名,memberMobile:会员电话,minConsume:低消,sex:性别({"code":"011001","name":"男"},{"code":"011002","name":"女"}),arrivedPeoperCount:人数,sourceType:客户来源(code),waiterUser:服务员,maintainUser:订台人(code),specialRequireType:特殊要求(code),remark:备注`,
                            requestContent:
                                '{"functionName":"ConsumeEdit","contentData":{"consumeCode":"0004202402050005","roomCode":"0004001","memberName":"123","memberMobile":"13812345678","minConsume":"100","sex":"011002","arrivedPeoperCount":"4","sourceType":"104001","waiterUser":"0003","maintainUser":"0004","specialRequireType":"105002","remark":""}}',
                        },
                        {
                            index: "GetPayWay",
                            indexText: "获取买单方式",
                            requestRemark: `门店取登录的门店编码
                            payCode:方式编号,payName:名称`,
                            requestContent:
                                '{"functionName":"GetPayWay","contentData":""}',
                        },
                        {
                            index: "Checkout",
                            indexText: "结账",
                            requestRemark: `门店取登录的门店编码
                            payBatchCode:买单批次号,itemCodeList:商品编号ItemCode(多个用,逗号隔开)`,
                            requestContent:
                                '{"functionName":"Checkout","contentData":{"payBatchCode":"买单批次号","itemCodeList":"商品编号ItemCode(多个用,逗号隔开)"}}',
                        },
                        {
                            index: "OrderPayRet",
                            indexText: "结账-支付撤销",
                            requestRemark: `门店取登录的门店编码
                            payType:方式编号 支付方式(001现金 002微信 003支付宝 004会员卡 005消费卷 006银联 007其他 008挂账 009聚合支付 010团购券 011赠送 012 会员优惠券撤销) ,itemCode:支付交易流水号(每次买单返回的itemCode),amt:支付的金额,payBatchCode:买单批次号(每次买单返回的payBatchCode),consumeCode:台单号(每个使用中的桌台都会带有),cardNo:会员卡号(撤销会员支付需要传卡号),tradeNo:微信支付宝支付的商户订单号(微信支付宝支付返回的商户订单号),`,
                            requestContent:
                                '{"functionName":"OrderPayRet","contentData":{"payType":"001","itemCode":"支付交易流水号","amt":"支付金额","payBatchCode":"买单批次号","consumeCode":"台单号","cardNo":"会员卡号","tradeNo":"微信和支付宝支付返回的tradeNo"}}',
                        },
                        {
                            index: "GetMenberTicket",
                            indexText: "获取会员卡优惠券",
                            requestRemark: `memberCarCode:会员卡号,consumeCode:消费单号,orderDetails:点单列表`,
                            requestContent: '{"functionName":"GetMenberTicket","contentData":{"memberCarCode":"00040000045","consumeCode":"0004202405200001","orderDetails":"[{\'goodsCode\':\'P000023\',\'uomCode\':\'041011\',\'goodsName\':\'鸡爪\',\'salePrice\':\'48.00\',\'orderQty\':\'1\'}]"}}',
                            responseContent: {
                                ticketUseList: {
                                    ticketCode: "券编码",
                                    menberuse: "当前会员使用张数",
                                    roomuse: "当前桌台使用张数"
                                },
                                listData: {
                                    Code: "会员优惠券编码",
                                    endData: "有效结束日期",
                                    goodsCode: "商品编码",
                                    goodsName: "商品名称",
                                    memberCarCode: "会员卡号",
                                    memberUseNum: "会员使用张数限制",
                                    roomUseNum: "桌台使用张数限制",
                                    sendType: "发送方式 1.免费发送，2.付费发送",
                                    startData: "有效开始日期",
                                    ticketCode: "券编码",
                                    timeStr: "使用时间段",
                                    useCondition: "使用限制：0.无限制，1.桌台使用限制，2.会员使用限制",
                                    usefulDateType: "有效期类型：1.时间段，2.天数",
                                    usefulTime: "可使用时间：1.全部时间，2.部分时间",
                                    usefulWeek: "可使用星期：1.全部星期，2.部分星期",
                                    useScene: "使用场景：1.小程序，2.H5，3.PC点单",
                                    weekStr: "部分星期选择",
                                    isUse: "是否可用",
                                    useerrmsg: "不可用原因",
                                    typeCode: "类型",
                                    typeCodeName: "类型名称",
                                    ticketAmt: "可抵扣金额"
                                }
                            }
                        },
                        // {
                        //     index: "UseMenberTicket",
                        //     indexText: "使用会员优惠券",
                        //     requestRemark: `memberCarCode:会员卡号 ,itemCode:点单编码,memberTicketCode:会员券编号,consumeCode:消费编码,roomCode:房台编号,memberMobile:会员手机号码,`,
                        //     requestContent:
                        //         '{"functionName":"GetMenberTicket","contentData":{"memberCarCode":"00040000045","consumeCode":"0004202405200001","orderDetails":"[{\'goodsCode\':\'P000023\',\'uomCode\':\'041011\',\'goodsName\':\'鸡爪\',\'salePrice\':\'48.00\'}]"}}',
                        // 		responseContent:{
                        // 		    ticketUseList:{
                        // 		        ticketCode:"券编码",
                        // 		        menberuse:"当前会员使用张数",
                        // 		        roomuse:"当前桌台使用张数"
                        // 		    },
                        // 		    listData:{
                        // 		        endData:"有效结束日期",
                        // 		        goodsCode:"商品编码",
                        // 		        goodsName:"商品名称",
                        // 		        memberCarCode:"会员卡号",
                        // 		        memberUseNum:"会员使用张数限制",
                        // 		        roomUseNum:"桌台使用张数限制",
                        // 		        sendType:"发送方式 1.免费发送，2.付费发送",
                        // 		        startData:"有效开始日期",
                        // 		        ticketCode:"券编码",
                        // 		        timeStr:"使用时间段",
                        // 		        useCondition:"使用限制：0.无限制，1.桌台使用限制，2.会员使用限制",
                        // 		        usefulDateType:"有效期类型：1.时间段，2.天数",
                        // 		        usefulTime:"可使用时间：1.全部时间，2.部分时间",
                        // 		        usefulWeek:"可使用星期：1.全部星期，2.部分星期",
                        // 		        useScene:"使用场景：1.小程序，2.H5，3.PC点单",
                        // 		        weekStr:"部分星期选择",
                        // 		        isUse:"是否可用",
                        // 		        useerrmsg:"不可用原因",
                        // 				typeCode:"类型",
                        // 				typeCodeName:"类型名称",
                        // 				ticketAmt:"可抵扣金额"
                        // 		    }
                        // 		}
                        // },
                        {
                            index: "UseMenberTicket",
                            indexText: "使用会员优惠券",
                            requestRemark: `memberCarCode:会员卡号 ,itemCode:点单编码,memberTicketCode:会员券编号,consumeCode:消费编码,roomCode:房台编号,memberMobile:会员手机号码,`,
                            requestContent:
                                '{"functionName":"UseMenberTicket","contentData":{"memberCarCode":"会员卡号","itemCode":"点单编码","memberTicketCode":"会员券编号","consumeCode":"消费编码","roomCode":"房台编号","memberMobile":"会员手机号码"}}',
                        },
                        {
                            index: "OrderPayClose",
                            indexText: "结账-未点击结账直接关闭撤销所有订单和支付记录",
                            requestRemark: `goodsItemCode:选中商品itemCode(多个用,逗号隔开) ,payBatchCode:买单批次号,consumeCode:消费单号(台单号)`,
                            requestContent:
                                '{"functionName":"OrderPayClose","contentData":{"goodsItemCode":"选中商品itemCode(多个用,逗号隔开)","payBatchCode":"买单批次号","consumeCode":"消费单号"}}',
                        },
                        {
                            index: "OrderChangePayClose",
                            indexText: "换菜-未结完关闭-撤销所有买单记录",
                            requestRemark: `payItemCodes:买单记录的itemCode(多个用,逗号隔开) ,payBatchCode:买单批次号,consumeCode:消费单号(台单号)`,
                            requestContent:
                                '{"functionName":"OrderChangePayClose","contentData":{"payItemCodes":"买单记录的itemCode(多个用,逗号隔开)","payBatchCode":"买单批次号","consumeCode":"消费单号"}}',
                        },

                    ]
                },
                {
                    label: '订单接口',
                    options: [
                        {
                            index: "GetOrderList",
                            indexText: "获取订单列表",
                            requestRemark: `consumeCode：台单号 \r\n beginTime：开始时间 \r\n endTime：结束时间 \r\n roomCode：房台编码 \r\n roomAreaCode：房台区域编码 \r\n roomState：桌台状态（0：未点单 1：未结清 2：已结清 3：已清台） \r\n maintainUserCode：订台人 \r\n payType：支付方式编码 \r\n memberMobile：客户电话 \r\n pageSize：页数 \r\n pageIndex：页码`,
                            requestContent: '{"functionName":"GetOrderList","contentData":{"consumeCode":"","roomCode":""}}',
                            responseContent: {
                                headData: {
                                    totalAmt: "订单总金额",
                                    realAmt: "实收总额",
                                    payAmt: "收款总额",
                                    smallChange: "找零",
                                    discountAmt: "优惠总金额",
                                    otherAmt: "其它总额",
                                },
                                listData: {
                                    consumeCode: "台单号",
                                    memberName: "会员名称",
                                    memberMobile: "会员手机号",
                                    roomCode: "桌编码",
                                    roomName: "桌台",
                                    roomAreaName: "桌台区域",
                                    startTime: "开台时间",
                                    arrivedPeoperCount: "用餐人数",
                                    waiterUser: "服务员",
                                    maintainUser: "订台人",
                                    totalAmt: "订单总额",
                                    realAmt: "实收金额",
                                    smallChange: "找零",
                                    discountAmt: "优惠",
                                    otherAmt: "其他金额",
                                    processState: "桌台状态",
                                    payType: "支付方式",
                                    giveChange: "赠送",
                                }
                            }

                        },
                        {
                            index: "GetPayOrderList",
                            indexText: "获取网络支付订单列表",
                            requestRemark: `beginDate：开始时间 \r\n endDate：结束时间  \r\n tradeNo：商户交易号 \r\n minMoney：最小金额 \r\n maxMoney：最大金额 \r\n payType：支支付类型 1:微信 2:支付宝 \r\n opType：交易类型 \r\n pageSize：页数 \r\n pageIndex：页码`,
                            requestContent: '{"functionName":"GetPayOrderList","orgCode":"0015","contentData":{"beginDate":"","endDate":""}}',
                            responseContent: {
                                payType: "支付方式",
                                payTypeName: "支付方式名称",
                                tradeNo: "商户交易号",
                                opType: "交易类型编码",
                                opTypeName: "交易类型名称",
                                payMoney: "交易金额",
                                tradeState: "交易状态",
                                tradeStateDesc: "交易状态描述",
                                crDate: "交易时间",
                            }
                        },

                    ]
                },
                {
                    label: '分单接口',
                    options: [
                        {
                            index: "OpSplitOrderList",
                            indexText: "操作分单接口",
                            requestRemark: `sourceRoomCode:源房台号 \r\n targetRoomCode:目标房台号 \r\n isPrint:是否打印小票 \r\n detail:分单详情`,
                            requestContent: '{"functionName":"OpSplitOrderList","contentData":{"sourceRoomCode":"0004005","targetRoomCode":"0004006","detail":[{"itemCode":"","itemQty":"1"}]}}',
                        },
                        {
                            index: "GetSplitOrderRecordList",
                            indexText: "分单历史记录",
                            requestRemark: `consumeCode：台单号 \r\n roomCode:房台号 \r\n pageSize:分页条数 \r\n pageIndex:分页下标`,
                            requestContent: '{"functionName":"GetSplitOrderRecordList","contentData":{"consumeCode":"0004202405150009","roomCode":"0004002"}}',
                        },
                    ]
                },
                {
                    label: '商品接口',
                    options: [
                        {
                            index: "GetGoodsList",
                            indexText: "商品列表接口",
                            requestRemark: `goodsName:商品名称 \r\n pageIndex:页码 \r\n pageSize:每页数量 isEstmClear:是否沽清 1沽清 0未沽清 ,state:是否下架 0下架 1正常销售,goodType 商品分类`,
                            requestContent: '{"functionName":"GetGoodsList","contentData":{"goodsName":"","isEstmClear":"","state":"","goodType":"","pageIndex":"1","pageSize":"15"}}',
                        },
                        {
                            index: "GoodsGuQing",
                            indexText: "商品沽清接口",
                            requestRemark: `state:状态（1：沽清；0:反沽清） opType:1 沽清 2永久沽清 3限量沽清,estmClearQty:限量沽清数量  \r\n goodDetails:商品详情`,
                            requestContent: '{"functionName":"GoodsGuQing","contentData":{"state":"1","opType":"1","estmClearQty":"1","goodDetails":[{"goodsCode":"P000005","uomCode":"041008"},{"goodsCode":"P000002","uomCode":"041006"}]}}',
                        },
                        {
                            index: "GoodsUpDownShelves",
                            indexText: "商品上下架接控",
                            requestRemark: `state:状态（1：上架；0:下架）  \r\n goodDetails:商品详情`,
                            requestContent: '{"functionName":"GoodsUpDownShelves","contentData":{"state":"1","goodDetails":[{"goodsCode":"P000005","uomCode":"041008"},{"goodsCode":"P000002","uomCode":"041006"}]}}',
                        },
                    ]
                },
                {
                    label: '打印接口',
                    options: [
                        {
                            index: "OrderChangePayPrint",
                            indexText: "换单收银小票打印(补打)",
                            requestRemark: `payBatchCode:买单批次号`,
                            requestContent:
                                '{"functionName":"OrderChangePayPrint","contentData":{"payBatchCode":"0004202402050005100647"}}',
                        },
                        {
                            index: "OrderPayPrint",
                            indexText: "收银小票打印(补打)",
                            requestRemark: `payBatchCode:买单批次号`,
                            requestContent:
                                '{"functionName":"OrderPayPrint","contentData":{"consumeCode":"0004202402050005100647","payBatchCode":""}}',
                        },
                        {
                            index: "HandoverPrint",
                            indexText: "交班小票打印",
                            requestRemark: `handoverStartDate:开始时间,handoverEndDate：结束时间`,
                            requestContent:
                                '{"functionName":"HandoverPrint","contentData":{"handoverStartDate":"2024-05-01 00:00:00","handoverEndDate":"2024-05-02 00:00:00"}}',
                        },
                        {
                            index: "DailySettlePrint",
                            indexText: "日结小票打印",
                            requestRemark: `payBatchCode:买单批次号`,
                            requestContent:
                                '{"functionName":"DailySettlePrint","contentData":{}}',
                        },
                        {
                            index: "GetPrintPreview",
                            indexText: "打印预览",
                            requestRemark: `handoverStartDate:开始时间,handoverEndDate：结束时间`,
                            requestContent:
                                '{"functionName":"GetPrintPreview","contentData":{"code":"00040306"}}',
                        },
                        {
                            index: "OrderChangePayPrint",
                            indexText: "换单收银小票",
                            requestRemark: `handoverStartDate:开始时间,handoverEndDate：结束时间`,
                            requestContent:
                                '{"functionName":"OrderChangePayPrint","contentData":{"consumeCode":"0015202406170004",detail":[{"locate":0,"isNew":"0","itemCode":"0015202406170004001","goodsCode":"P000011","goodsName":"绝对伏特加","uomCode":"041003","uomName":"瓶","flavor":"","salePrice":428,"goodsQty":1,"vipPrice":428},{"isNew":"1","itemCode":"0015P000005041003","goodsCode":"P000005","goodsName":"轩尼诗VSOP","uomCode":"041003","uomName":"瓶","flavor":"","salePrice":"1210.00","goodsQty":"1","vipPrice":"1200.00"}],"payList":[{"zffs":"现金","skje":"782.00","consumeCode":"0015202406170004","payType":"001","totalAmt":"782.00","payAmt":"782.00","giveChange":"","isGiveAct":"0","notGiveChange":0,"detailList":["0015202406170004001"]}]}}',
                        },
                        {
                            index: "RefundGoodPrint",
                            indexText: "退菜退款小票",
                            requestRemark: `handoverStartDate:开始时间,handoverEndDate：结束时间`,
                            requestContent:
                                '{"functionName":"RefundGoodPrint","contentData":{"consumeCode":"0015202406170003","payBatchCode":"M0015202406170003190949","detail":[{"itemCode":"0015202406170003004","goodsCode":"P000016","goodsName":"百威(玻璃瓶)","uomCode":"041005","uomName":"打","salePrice":168,"returnQty":1,"totalAmount":168}],"payDetail":[{"payItemCode":"00152024061700030003","payType":"001","refundFee":168,"tradeNo":"","memberCode":""}]}}',
                        },
                    ]
                },
                {
                    label: '挂账接口',
                    options: [
                        {
                            index: "GetMountList",
                            indexText: "获取挂账列表",
                            requestRemark: `mountCode：挂账单号 \r\n mountUser:挂账人 \r\n mountMobile:挂账电话 \r\n mountState:挂账状态 \r\n beginTime:挂账开始时间 \r\n endTime:挂账结束时间 \r\n lastBeginTime:最后划款开始时间 \r\n lastEndTime:最后划款结束时间 \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetMountList","orgCode": "0015","contentData":{}}',
                            responseContent: {
                                mountCode: "挂账单号",
                                payItemCode:"买单流水号",
                                consumeCode: "消费单号",
                                payBatchCode: "买单批次号",
                                mountUser: "挂账人",
                                mountMobile: "挂账人电话",
                                mountDate: "挂账时间",
                                roomCode: "房台号",
                                roomName: "房台名称",
                                totalAmt: "挂账金额",
                                unPayAmt: "未还金额",
                                mountState: "还款状态 0未支付 1部分支付 2已支付",
                                mountStateName: "挂账状态名称",
                                suretyUser: "担保人",
                                opUser: "操作人",
                                lastPayTime: "最后一次付款时间",
                                remark: "挂账备注",
                            }
                        },
                        {
                            index: "MountPay",
                            indexText: "挂账支付",
                            requestRemark: ``,
                            requestContent: '{"functionName":"MountPay","contentData":{"serviceAmt":[{"type":"抹零/服务费/折扣优惠/补低消","subType":"子类型","amt":"服务费类型"}],"payItemCode":"买单批次的交易流水号","consumeCode":"消费单号","orderBatchCode":"订单批次号","payBatchCode":"买单批次号","roomCode":"房台号","payAmt":"支付金额","payType":"支付方式","memberCard":"会员卡支付要传","remark":"备注"}}',
                        },
                        {
                            index: "GetMountRecordList",
                            indexText: "获取挂账还款列表",
                            requestRemark: `payItemCode:买单流水号 \r\n payType:支付方式 \r\n payState:支付类型 \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetMountRecordList","orgCode": "0015","contentData":{}}',
                            responseContent: {
                                payItemCode:"买单流水号",
                                consumeCode: "消费单号",
                                payBatchCode: "买单批次号",
                                roomCode:"房台编码",
                                tradeNo:"商户交易号",
                                payType: "支付方式",
                                payTypeName: "支付方式名称",
                                payAmt: "付款金额",
                                payDate: "付款时间",
                                payState: "支付类型 1:还款 0：退款",
                                payStateName: "支付类型名称",
                                payRemark: "支付备注",

                            }
                        },
                        {
                            index: "MountRefund",
                            indexText: "挂账退款",
                            requestRemark: `itemCode：支付流水号`,
                            requestContent: '{"functionName":"MountRefund","contentData":{"itemCode":""}}',
                        },
                    ]
                },
                {
                    label: '其它接口',
                    options: [
                        {
                            index: "AllRoomClear",
                            indexText: "一键清台接口",
                            requestRemark: ``,
                            requestContent: '{"functionName":"AllRoomClear","contentData":""}',
                        },
                        {
                            index: "SocketTest",
                            indexText: "Socket接口测试",
                            requestRemark: `消息模块:
                                OpenRoom:开台,
                                ClearRoom:清台,
                                TurnRoom:转台,
                                ResetRoom:复台,
                                LockRoom:锁台,
                                RepairRoom:维修,
                                ReserveRoom:预订,
                                CancelReserveRoom:取消预订,
                                OrderAdd:点单,
                                OrderCheckout:结账,
                                AddQueue:新增排队,
                                SeatQueue:排队入座,
                                PassQueue:排队过号,
                                CallQueue:排队叫号,
                                MenberRecharge:会员充值,
                                MenberConsume:会员消费,
                                StoreWine:存酒,
                                TakeWine:取酒,
                                UserTakeWine:用户申请取酒
                                `,
                            requestContent: '{"functionName":"SocketTest","contentData":{"socketName":"openRoom","roomCode":"0004004"}}',
                            responseContent:{
                                msgReceivePage:"消息页面（Room,Order,Queue,Member,StoreTakeWine）",
                                msgType:"消息类型(Notice,Data)",
                                subMsgType:"消息模块",
                                msgContent:"消息内容"
                            }
                        },
                        {
                            index: "TranTest",
                            indexText: "事务测试",
                            requestRemark: ``,
                            requestContent: '{"functionName":"TranTest","contentData":{}}',
                        },

                    ]
                },
                {
                    label: '统计接口',
                    options: [
                        {
                            index: "ShiftsSummary",
                            indexText: "交班汇总",
                            requestRemark: ``,
                            requestContent: '{"functionName":"ShiftsSummary","contentData":""}',
                        },
                        {
                            index: "OpShifts",
                            indexText: "交班操作",
                            requestRemark: `reserveMoney:交班备用金 \r\n shiftsRemark:交班备注 \r\n endTime:结束时间`,
                            requestContent: '{"functionName":"OpShifts","contentData":{"reserveMoney":"100","shiftsRemark":""}}',
                        },
                        {
                            index: "OpShiftHandoverBus",
                            indexText: "交班营业汇总",
                            requestRemark: `startTime:营业开始时间,endTime:当前时间
                            {saleTotalAmt:消费合计,goodsAmt:商品消费,otherAmt:其他费用,otherAmts:[{serviceAmt:服务费,addConsumeAmt:补低消,notGiveChange:不找赎}],disTotalAmt:优惠总计,disTotalAmts:[{giftAmt:赠送金额,disAmt:折扣优惠,smallChange:抹零,vipAmt:会员优惠}],mountTotalAmt:挂账金额,mountCount:挂账次数,virtualTotalAmt:虚收总计,virtualTotalAmts:[{changeAmt:兑换券金额,changeCount:兑换次数,coinsCount:金币次数,coinsAmt:金币金额}],activeTotalAmt:实收总计,activeTotalAmts:[{payTypeName:支付方式,payType:001,payAmt:支付金额,count:支付次数}],rechargeAmtTotal:充值金额,rechargeAmtTotals:[{chargeWay:569003,chargeWayName:充值支付方式,payAmt:充值金额,count:次数,preConis:242}],rechargeCoinsTotal:赠送金币,pointAmtTotalAmt:出品点总计,pointAmtTotalAmts:[{totalAmt:金额,producePoint:000403,producePointName:出品方式}]}`,
                            requestContent: '{"functionName":"OpShiftHandoverBus","contentData":{"startTime":"2024-05-01 00:00:00","endTime":"2024-05-01 23:00:00"}}',
                        },
                        {
                            index: "GetShiftsRecordList",
                            indexText: "获取交班记录列表",
                            requestRemark: `businessBeginTime:营业开始时间 \r\n businessEndTime:营业结束时间 \r\n shiftsUser:交班人 \r\n pageSize:页数 \r\n pageIndex:页码`,
                            requestContent: '{"functionName":"GetShiftsRecordList","contentData":{}}',
                            responseContent: {
                                code: "交班流水号",
                                businessBeginTime: "营业开始时间",
                                businessEndTime: "营业结束时间",
                                shiftsBeginTime: "交班开始时间",
                                shiftsEndTime: "交班结束时间",
                                consumeCount: "开台数",
                                totalAmt: "本班营业额",
                                cashAmt: "现金收款",
                                discountAmt: "优惠总额",
                                rechargeAmt: "充值总额",
                                reserveMoney: "备用金",
                                shiftsUser: "交班人",
                                shiftsDate: "交班时间",
                                shiftsRemark: "交班备注",
                            }
                        },
                    ]
                },
                {
                    label: '业绩接口',
                    options: [
                        {
                            index: "GetMarketConsumeList",
                            indexText: "业绩消费列表",
                            requestRemark: `beginTime：开始时间 \r\n endTime：结束时间 \r\n groupCode：组别编码 \r\n rankCode：职级编码 \r\n mobile：手机号`,
                            requestContent: '{"functionName":"GetMarketConsumeList","contentData":""}',
                        },
                        {
                            index: "GetMarketConsumeRoomList",
                            indexText: "业绩消费房台列表",
                            requestRemark: `beginTime：开始时间 \r\n endTime：结束时间 \r\n groupCode：组别编码 \r\n rankCode：职级编码 \r\n mobile：手机号`,
                            requestContent: '{"functionName":"GetMarketConsumeRoomList","contentData":""}',
                        },
                    ]
                }


                // {
                // 	index: "PwdEdit",
                // 	indexText: "服务员密码修改",
                // 	requestRemark: "mobile:手机号,oldPwd:旧密码,newPwd:新密码",
                // 	requestContent:
                // 		'{"functionName":"PwdEdit","contentData":{"mobile":"","oldPwd":"","newPwd":""}}',
                // },
                // {
                // 	index: "GetBaseConfigInfo",
                // 	indexText: "获取基础配置信息",
                // 	requestRemark:"orgCode:门店编码(先默认0004)",
                // 	requestContent:
                // 	'{"functionName":"GetBaseConfigInfo","contentData":{"orgCode":"0004"}}',
                // },


                // {
                //     index: "MemberTransactionRecord",
                //     indexText: "会员交易记录(小程序-我的-交易记录)",
                //     requestRemark:
                //         "userCode:会员编号(后台会通过编号查到卡号,然后查询对应交易记录),type:类型 561002 会员储值 561001 他人储值 561003 堂食消费 561004 消费退款,startDate:开始时间,endDate:结束时间,pageSize:每页数量,pageIndex:页码",
                //     requestContent:
                //         '{"functionName": "MemberTransactionRecord","orgCode": "0004","contentData": {"userCode":"000001","type":"561001","startDate":"2023-01-10 19:00:00","endDate":"2025-01-10 19:00:00","pageSize":"10","pageIndex":"1"}}',
                //     responeContent:
                //         "memberCode:会员卡号,memberName:会员名称,operDate:交易时间,monthStr:月,dayStr:天,timeStr:时间,operAmt:操作金额,currentAmt:余额,operType:类型,operTypeName:类型名称",
                // },

            ],
            queueArray: [],
        };
    },
    methods: {
        optionChange() {

            this.optionsInfo.find((item) => {
                let obj = item.options.find((x) => x.index == this.requestIndex);
                if (obj) {
                    this.requestRemark = obj.requestRemark;
                    this.requestContent = obj.requestContent;
                    if (obj.responseContent) {
                        this.responseContent = obj.responseContent;
                    }
                    else {
                        this.responseContent = {}
                    }
                    this.requestResult = "";
                    this.format();
                }
            }
            );
            //console.log(this.requestIndex,option);
            //this.requestRemark = option.requestRemark;
            //this.requestContent = option.requestContent;
            //this.requestResult = "";
        },
        radioChange(e) {
            this.optionsInfo.find((item) => {
                let obj = item.options.find((x) => x.index == this.requestIndex);
                if (obj) {
                    console.log(obj.responseContent)
                    this.requestRemark = obj.requestRemark;
                    this.requestContent = obj.requestContent;

                    if (obj.responseContent) {
                        this.responseContent = obj.responseContent;

                    }
                    else {
                        this.responseContent = {}
                    }


                    this.requestResult = "";
                    this.format();
                }
            }
            );
        },
        copyToken() {
            this.requestContent = this.token;
        },
        sleep(seconds) {
            return new Promise(resolve => setTimeout(resolve, seconds * 1000));
        },
        async submit() {
            if (this.requestIndex == "pcLogin") {
                let url = `${config.API_URL}/PcLogin`;
                let data = JSON.parse(this.requestContent);
                let result = await http.get(url, data);
                if (result.opFlag == "1") {
                    this.token = this.requestResult = result.userInfo.token;
                    this.hasToken = true;
                    this.requestResult = "登录成功,token:" + this.token;
                } else {
                    this.requestResult = result.opMsg;
                    this.hasToken = false;
                }
            } else if (this.requestIndex == "attachment") {
                //
            } else {
                if (!this.hasToken) {
                    this.requestResult = "请登录";
                } else {
                    let url = `${config.API_URL}/PcObjProcess`;
                    let data = JSON.parse(this.requestContent);
                    let result = await http.post(url, data, {
                        headers: {
                            token: "Bearer " + this.token,
                        },
                    });
                    if (result.opFlag == "1") {
                        if (result.content.objectList[0].object == "QueueCallTest") {

                            var that = this;
                            var rowData = result.content.objectList[0].rowData;
                            console.log(rowData)
                            this.queueArray = rowData.callList;
                            this.queueArray.reverse();
                            this.paySound();


                        }
                        try {
                            this.requestResult = JSON.stringify(
                                JSON.parse(
                                    JSON.stringify(result.content)
                                        .replaceAll('\\"', '"')
                                        .replaceAll('"[', "[")
                                        .replaceAll(']"', "]")
                                )
                            );

                            this.responseResult = JSON.parse(this.requestResult)
                        } catch (error) {
                            this.requestResult = result.content.objectList[0].rowData;
                            this.responseResult = JSON.parse(result.content.objectList[0].rowData)
                        }
                    } else {
                        this.requestResult = result.opMsg;
                    }
                }
            }
        },
        format() {

            let result = JSON.parse(this.requestContent)
            this.requestContent = JSON.stringify(result, null, 4)
        },
        paySound() {
            console.log(this.queueArray);
            var myAudio = new Audio();
            myAudio.preload = true;
            myAudio.controls = false;
            let source = this.queueArray.pop();
            console.log(source);
            myAudio.src = source; //每次读数组最后一个元素
            myAudio.addEventListener("ended", playEndedHandler, false);
            myAudio.play();
            document.getElementById("audioBox").appendChild(myAudio);
            myAudio.loop = false; //禁止循环，否则无法触发ended事件
            let that = this;
            function playEndedHandler() {
                source = that.queueArray.pop();
                console.log(source);
                myAudio.src = source;
                myAudio.play();
                !that.queueArray.length &&
                    myAudio.removeEventListener("ended", playEndedHandler, false); //只有一个元素时解除绑定
            }
        },

    },
    async mounted() {
        this.optionChange();
        this.submit();

    },
};
</script>




